Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int funkcja(int* a)
- {
- cout << *a << endl; // 2. 10
- ++(*a);
- cout << *a << endl; // 3. 11
- return *a;
- }
- int main()
- {
- int* wskaznik = new int;
- *wskaznik = 10;
- cout << funkcja(wskaznik) << endl;
- cout << *wskaznik << endl;
- cout << wskaznik << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement