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