#include <iostream>
using namespace std;

int main()
{
  int num1 = 100;
  int num2 = num1;
  int &num3 = num1;

  cout << "Address of num1 is " << &num1 << "\n";
  cout << "Address of num2 is " << &num2 << "\n";
  cout << "Address of num3 is " << &num3 << "\n";

  return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: