Lab2Q4 (1).cpp - #include <iostream> using namespace std void printArray(int arr int size for(int i= 0 i< size i cout<arr[i]<\\t cout<endl int main int

Lab2Q4 (1).cpp - #include <iostream> using namespace std...

This preview shows page 1 out of 1 page.

#include <iostream> using namespace std; void printArray(int arr[], int size){ for (int i= 0; i< size; i++) cout<<arr[i]<<"\t"; cout<<endl; } int main(){ int arr[10] = { 1789, 2035, 1899, 1456, 2013, 1458, 2458, 1254, 1472, 2365}; cout<<"Original array : "<<endl;
Image of page 1

You've reached the end of your free preview.

Want to read the whole page?

  • Spring '17
  • Return statement, Void type, int arr, int size

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes