Pointer Program C Programming Home » C Pointers » Pointer //Pointer Program in C #include #include void main() { int a,b; int *p,**t; a = 10; b = 30; p = & a; printf("\n Pointer in C\n\n"); printf("\n a = %d",a); /* 10 */ printf("\n a = %u",&a); /* 4080 */ printf("\n a = %d",*(&a)) ; /* 10 */ printf("\n P = %u",p) ; /* 4080 */ printf("\n P = %u",&p) ; /* 8080 */ printf("\n P = %d",*p) ; /* 10 */ printf("\n P = %d",*(&p)) ; /* 10 */ t = & p; printf("\n T = %u",t); /* 8080 */ printf("\n T = %u",&t); /* 2040 */ printf("\n T = %u",*(&t)); /* 4080 */ printf("\n T = %d",**(&t)); /* 10 */ printf("\n T = %d",**t); /* 10 */ getch(); } Read more » Tweet Share Share Share Share Related Post
1 comments:
Click here for commentsFor more information on C programming, visit https://ekeeda.com/
ConversionConversion EmoticonEmoticon