Advertisement
Grossos

Recursive Array Function Returns Values of Integer

Feb 17th, 2017
289
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.30 KB | None | 0 0
  1. // Recursive Array Function Returns Number of Value and Response by Integer
  2. #include<iostream>
  3. using namespace std;
  4. int main()
  5. {
  6.  const int N=5;
  7.  
  8.    int arr[N]= { 3, 2, 1, 6, 7 };
  9.        for(int i=0;i<5;i++)
  10.  
  11.           cout<<" arr["<<N-5<<"]"<<"="<<*(arr+i);
  12.           cout<<endl;
  13.  
  14.     system("pause");
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement