Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int liczba = 150;
- int *wskaznik = 0;
- int *wskaznik2 = 0;
- wskaznik = &liczba;
- wskaznik2 = wskaznik;
- cout << "adres zmiennej=" << &liczba << "adres wskaznika=" << wskaznik << endl;
- cout << *wskaznik << endl;
- *wskaznik += 1;
- *wskaznik += 2;
- liczba += 2;
- cout << liczba << endl;
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement