Saturday, 20 January 2018

Introduction of Pointers (Declaration, Initialization)

int a = 10, *p;
p = &a;
cout<<a;
cout<<&a;
cout<<p;
cout<<&p;
cout<<*(&a);
cout<<*(&p);
cout<<*p;

10

1102

1102

1104

10

1102

10



No comments:

Post a Comment