Using the & Character to Obtains the address of a variable and prints it. - C++ Operator

C++ examples for Operator:Address Operator

Description

Using the & Character to Obtains the address of a variable and prints it.

Demo Code

#include <iostream> 

using namespace std; 

int main() /*from   ww  w  . j  a  v  a2s .com*/
{ 
  int a = 1; 

  cout << &a << endl; 

  return 0; 
}

Result


Related Tutorials