Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include <iostream>
- void f(int pi[])
- {
- int a[]={1,2,3,4,5};
- pi = a;
- int* p = a;
- int* q = pi;
- std::cout << *p << " "<< *q << " "<< *pi << " ";
- }
- int _tmain(int argc, _TCHAR* argv[])
- {
- int pi[]= {1,2,3,6,7};
- f(pi);
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement