C++ Exercises
C++ Program to Print variable address.
Let see in this program to display the address of a variable using & operator. When display variable size & variable name.
#include <iostream> using namespace std; int main() { int x; cout<<"\n To display x variable address :"<<&x<<endl; return 0; }
Output:
To display x variable address :0x22ff0c