How to use the address operator to assign the address of a variable to a pointer
#include using namespace std; int main () { int num = 5; int* intPointer = # cout << "The address of x using &num is " << &num << endl; cout << "The address of x using intPointer is " << intPointer << endl; return 0; }