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; // 2. 10
- ++liczba;
- cout << liczba << endl; // 3. 11
- }
- int main()
- {
- int liczba = 10;
- cout << liczba << endl; // 1. 10
- funkcja(liczba);
- cout << liczba << endl; // 4. 11
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement