108. Size of pointer variable.
#include<stdio.h>
char
ch,*cp;
int
i,*ip;
float
f,*fp;
void
main()
{
printf("
ch = %d *cp = %d\n",sizeof(ch),sizeof(cp));
printf("
i = %d *ip = %d\n",sizeof(i),sizeof(ip));
printf("
f = %d *fp = %d\n",sizeof(f),sizeof(fp));
}
Comments
Post a Comment