Advertisement
Guest User

Untitled

a guest
Dec 13th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.26 KB | None | 0 0
  1. #include<iostream>
  2.  
  3. using namespace std;
  4.  
  5. void output(int arr[], int size){
  6.     for(int i = 0; i < size; i++) cout << arr[i];
  7. }
  8.  
  9. int main(){
  10. cout << "Hello" << endl;
  11. int x[3] ={1,2,3};
  12. int y[4] = {1,2,3,4};
  13.  
  14. output(x, 3);
  15. output(y, 4);
  16.  
  17. return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement