Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int a = 14;
- float b = 6.7;
- char c = 'x';
- int *w_a = &a;
- float *w_b = &b;
- char *w_c = &c;
- int main(){
- cout << "a: " << a << endl;
- cout << "b: " << b << endl;
- cout << "c: " << c << endl;
- cout << "adres a: " << (intptr_t)&a << endl;
- cout << "adres b: " << (intptr_t)&b << endl;
- cout << "adres c: " << (intptr_t)&c << endl;
- cout << "wartosc adresu a: " << *w_a << endl;
- cout << "wartosc adresu b: " << *w_b << endl;
- cout << "wartosc adresu c: " << *w_c << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment