बिजनेस मार्केटिंग का लो कॉस्ट फंडा , अपने मोबाइल से ऑटो sms भेजकर मार्केटिंग करे विजिट करे http://autotextsms.com/ बिजनेस मार्केटिंग का लो कॉस्ट फंडा http://autotextsms.com/

Search This Blog

Translate

print size of pointer variable and pointer values for int,float,double,long

print size of pointer variable and pointer values for  int,float,double,long


#include"stdio.h"
#include"conio.h"
void main()
{
int a,*p1=&a;
float b,*p2=&b;
char c,*p3=&c;
double d,*p4=&d;
long e,*p5=&e;
clrscr();
printf("****** INTEGER ******");
printf("\nSize of pointer variable= %d\n\nSize of pointer values= %d",sizeof(p1),sizeof(*p1));
printf("\n\n\n****** FLOAT ******");
printf("\nSize of pointer variable= %d\n\nSize of pointer values= %d",sizeof(p2),sizeof(*p2));
printf("\n\n\n****** CHAR ******");
printf("\nSize of pointer variable= %d\n\nSize of pointer values= %d",sizeof(p3),sizeof(*p3));
printf("\n\n\n****** DOUBLE ******");
printf("\nSize of pointer variable= %d\n\nSize of pointer values= %d",sizeof(p4),sizeof(*p4));
printf("\n\n\n****** LONG ******");
printf("\nSize of pointer variable= %d\n\nSize of pointer values= %d",sizeof(p5),sizeof(*p5));
getch();
}

print size of pointer variable and pointer values for  int,float,double,long



C Program example List