Created
September 21, 2018 10:40
-
-
Save mefahimrahman/7fb0f45ae1f45caeb97d5aaeb39c4833 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<bits/stdc++.h> | |
using namespace std; | |
int main() | |
{ | |
int x=7,&y=x; | |
cout<<"Whithout Increment: "; | |
cout<<&x<<" "<<&y<<endl; | |
cout<<x<<" "<<y<<endl; | |
--x; | |
cout<<"After x Increment: "; | |
cout<<&x<<" "<<&y<<endl; | |
cout<<++x<<" "<<y<<endl; | |
y++; | |
cout<<"After y Increment: "; | |
cout<<&x<<" "<<&y<<endl; | |
cout<<x<<" "<<++y<<endl; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment