Does following code compile in any compiler ?
int * p,*q;
vp=p; // I know this perfectly ok
q=vp; // here as I know it will not compile..and we need to type cast (int *).
The visual studio C++ 6 compiler said the same.But a leading author in C and C++ says
in his book : "No typecasting is required while assigning the value to and from vp because conversion are applied automatically when other pointers type are assigned to and from void*". So no error for the code.
Am I doing something wrong to understand the concept here?
Thanks and Regards,