1.

Compare the following two statements, inta=5;int*a=newint(5);

Answer»

int a=5; This means ‘a’ is an integer variable that is initialized with the integer value 5. int *a=new int(5). Here ‘a’ is a pointer variable and it allocates memory dynamically and stores a value 5.



Discussion

No Comment Found