#include<iostream>
using namespace std;
int main(){
int a = 5;
int *ptr = &a;
cout << ptr << " " << endl;
ptr++;
cout << ptr << " " << endl;
ptr--;
cout << ptr << " " << endl;
return 0;
}
OUTPUT-
0x61ff08
0x61ff0c
0x61ff08
No comments:
Post a Comment