Write a program to implement the concept of pointers.

#include
#include
main()

{
int a,b,*p,*q;
clrscr();
cout<<"nAddress of a is: "<<&a;
cout<<"nAddress of b is: "<<&b;
cout<<"nAddress of p is: "<<&p;
cout<<"nAddress of q is: "<<&q;
getch();

Leave a reply