Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int b = 20;
- int *a = &b;
- int main(){
- cout << "wartosc b: " << b << endl;
- cout << "adres b: " << (intptr_t)a << endl;
- cout << "adres wskaznika a: " << (intptr_t)&a << endl;
- cout << "wartosc wskaznika a: " << *a << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment