About Me

My photo
Raipur, Chhattisgarh, India
Hi , I am Amit Thakur. I have worked as a QA Engineer for two years and as a Java Developer for one year in NIHILENT TECHNOLOGIES PVT. LTD., Pune.Currently I am working as DEAN (Research & Development) in Bhilai Institute of Technology, Raipur.

Tuesday, September 3, 2013

Pointer Program : Size of Pointer to Structure

#include<stdio.h>

typedef struct XYZ
{
   int far *fptr;
   double dvar;
   unsigned char ch;
}xyz;


int main()
{
xyz *ptr = (XYZ *)1000;
printf("Size of Pointer to structure : %d",sizeof(ptr));
return(0);
}
Output :
Size of Pointer to structure : 2

No comments: