Advertisement
Guest User

Untitled

a guest
Jul 1st, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. void arydisp(int name[], int len);
  5.  
  6. int main()
  7. {
  8. int dt[5] = {10, 20, 30, 40, 50};
  9. arydisp(dt, 5);
  10. return 0;
  11. }
  12.  
  13. void arydisp(int name[], int len)
  14. {
  15. int i;
  16. for (i = 0; i < len; i++)
  17. cout << name[i] << '\n';
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement