Read OnLine Cpp Program Example
POINTER | |
---|---|
PRAC 1 | PRAC 2 |
//wap to print address of the varable #include<iostream.h> #include<conio.h> void main() { int i=3; clrscr(); cout<<"\n Address of i="<<&i; cout<<"\n Value of i="<<i; getch(); } -------output-------- Address of i=0x8f96fff4 Value of i=3 |
//wap to print Address of the varable #include<iostream.h> #include<conio.h> void main() { int i=3; clrscr(); cout<<"\n Address of i="<<&i; cout<<"\n Value of i="<<i; cout<<"\n Value of i="<<*(&i); getch(); } ------output-------- Address of i=0x8f98fff4 Value of i=3 Value of i=3 |
Previous | Next |
Download | Download |