boost learn study
Monday, March 31, 2014
Pointer Program
Home
�
C Pointers
�
Pointer
#include
#include
void main() { int a,b; int *p,**t; a = 10; b = 30; p = & a; printf("\a = %d",a); /* 10 */ printf("\a = %u",&a); /* 4080 */ printf("\a = %d",*(&a)) ; /* 10 */ printf("\P = %u",p) ; /* 4080 */ printf("\P = %u",&p) ; /* 8080 */ printf("\P = %d",*p) ; /* 10 */ printf("\P = %d",*(&p)) ; /* 10 */ t = & p; printf("\T = %u",t) ; /* 8080 */ printf("\T = %u,&t) ; /* 2040 */ printf("\T = %u",*(&t)) ; /* 4080 */ printf("\T = %d",**(&t)) ; /* 10 */ printf("\T = %d",**t) ; /* 10 */ getch(); }
Read more �
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment