115. Incrementing character pointer and integer pointer.
#include<stdio.h>
int
i,*ip;
char
*cp;
float
*fp;
void
main()
{
ip=&i;
cp=(char *)&i;
fp=(float *)&i;
printf("i=%p \nip=%p ip+1=%p
\ncp=%p cp+1=%p \nfp=%p fp+1=%p\n",&i,ip,ip+1,cp,cp+1,fp,fp+1);
}
Comments
Post a Comment