Skip to content

Instantly share code, notes, and snippets.

@Fatima-progmmer
Created February 4, 2025 07:55
Show Gist options
  • Save Fatima-progmmer/b69cf2d2c9037b43a30d6d32fe5bc3cd to your computer and use it in GitHub Desktop.
Save Fatima-progmmer/b69cf2d2c9037b43a30d6d32fe5bc3cd to your computer and use it in GitHub Desktop.
How & operator work with variable
#include<iostream>
using namespace std;
int main()
{
int var1=11;
int var2= 22;
int var3=33;
cout << "1st address is "<< &var1 <<endl;
cout << "2nd address is " << &var2 <<endl;
cout <<"3rd address is " << &var3 <<endl;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment