Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main(int argc, char** argv) {
- int a = 10;
- int* b = new int;
- *b = 22;
- int* c;
- c = &a;
- int tt[5] = {1,2,3,4,5};
- cout<<"a ="<< a << endl;
- cout<<"adres b ="<< b << endl;
- cout<<"b ="<< *b << endl;
- cout<<"c ="<< c << endl;
- *c=*c+10;
- cout<<"c ="<< *c << endl;
- cout<<"a ="<< a << endl;
- c=&tt[0];
- cout<<"c[tab] =" << *c << endl;
- c++;
- cout<<"c[tab] =" << *c << endl;
- c++;
- cout<<"c[tab] =" << *c << endl;
- c++;
- delete b;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement