Go back to Richel Bilderbeek's homepage.

Go back to Richel Bilderbeek's C++ page.

 

 

 

 

 

(C++) address

 

An address is location in a a computer's memory where it stores all its variables.

 

#include <iostream>

int main()
{
  const int i = 10;
  std::cout << i  << '\n'; //Request the value of i
  std::cout << &i << '\n'; //Request the address of i
}

 

Screen output:

 

10
0xbfbcea2c

 

A pointer is a data type for addresses.

 

 

 

 

Go back to Richel Bilderbeek's C++ page.

Go back to Richel Bilderbeek's homepage.

 

Valid XHTML 1.0 Strict