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.