Q : Write a C program to find size of structure without using sizeof operator.
struct stu *pt=NULL;
printf("\n\tSize of pointer is %d",pt);
NULL means pointer is not point any location. So NULL will assign 0 in it. Increment operator jump pointer some byte further which is equivalent to the size of pointer. This process is same as in array for address calculation.
Download Source Code