Sunday, 11 August 2013

What is the main difference between integer pointer and character pointer?

What is the main difference between integer pointer and character pointer?

Consider this code:
int a=100;
int *p1=&a,**p2=&p1;
char *p3=&a,**p4=&p3; //Here *p1,*p3,**p2,**p4 all return 100
p4=&p1;
p2=&p3;
*p1, *p3, **p2 and **p4 all return 100.
I want to know the significance of specifying a pointer as integer and
character.

No comments:

Post a Comment