Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int x = 5; // promenná X s hodnotou 5
- int* pointer = &x; // do pointeru ulozim adresu promenne X pres znak &
- cout << "Hodnota promenne X: " << x << endl;
- cout << "Hodnota pointeru: " << pointer << endl;
- cout << "Adresa promenne X: " << &x << endl;
- cout << "Hodnota na adrese pointeru: " << *pointer << endl;
- cin.get();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment