RE: Between a long pointer and a char pointer , which ...
pragmatic approach is the best approach. Just to support above comment.printf( d sizeof(long *));printf( d sizeof(char *));printf( d sizeof(double *));
RE: Between a long pointer and a char pointer , which one consumes more memory? explain
Both the long pointer and char pointer consumes the same memory. By declaring variable as a long pointer means that it contains the address of another long variable and also for char pointers it contains the address of another char variable. So all normal pointers have only two bytes for storing the address.
RE: Between a long pointer and a char pointer , which one consumes more memory? explain
If the question is regarding the data type long and the data type char then both long pointer and char pointer occupy the same space ie 2 bytes
But I think in C there is a special kind of pointers called long pointers. These pointers are more than 2 bytes in size. Hence they can hold the address of the variables which are quite far away. Hence the name long pointer