Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int b[] = { 5, 2, 3, 1, 8, 6 };
- int *f(int a)
- {
- return b + a;
- }
- int main()
- {
- cout << *f(2);
- system("pause");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement