Interview Question

Interview Bangalore (India)

Whats wrong with the below syntax? int *ptr1 = new int

  (); int *ptr2 = new int(10); int * ptr3 = new (gPtr1) int(); int * ptr4 = new (gPtr1) int(10); gPtr1 is a globally memory allocation pointer.
Answer

Add Answers or Comments

To comment on this, Sign In or Sign Up.