#include <iostream>


int main() {

  int num = 5;


  // Display the address of num

  std::cout << "The address of num is " << &num << std::endl;


  return 0;

}

output :

This program outputs the address of the num variable, which will be a hexadecimal value that represents the memory location where the variable is stored.