Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int f(const int& x, int* y)
- {
- *y = 5;
- return x;
- }
- int main()
- {
- int x = 10;
- cout << f(x, &x) << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement