Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- using namespace std;
- void qazxc(int *name_a,int num)
- {
- cout<<"point of name_a="<<name_a<<endl;
- for(int i=0;i<num;i++)
- {
- cout<<*(name_a+i)<<endl;
- }
- }
- int main()
- {
- int name[5]={0,1,2,3,4};
- cout<<"address of name="<<&name<<endl;
- qazxc(name,4);
- }
Add Comment
Please, Sign In to add comment