Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- void funkcja(int liczba)
- {
- cout << &liczba << endl; // INNA KOMÓRKA PAMIĘCI
- cout << liczba << endl; // 1. 10
- ++liczba;
- cout << liczba << endl; // 2. 11
- liczba *= 10;
- cout << liczba << endl; // 3. 110
- --liczba;
- cout << liczba << endl; // 4. 109
- }
- int main()
- {
- int liczba = 10;
- cout << &liczba << endl; // INNA KOMÓRKA PAMIĘCI
- funkcja(liczba);
- cout << liczba << endl; // 5. 10
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement