function to print the array elements */
| 42 | } |
| 43 | /* function to print the array elements */ |
| 44 | void printArr(int a[], int n) |
| 45 | { |
| 46 | for (int i = 0; i < n; ++i) |
| 47 | { |
| 48 | cout<<a[i]<<" "; |
| 49 | } |
| 50 | |
| 51 | } |
| 52 | int main() |
| 53 | { |
| 54 | int a[] = {47, 9, 22, 42, 27, 25, 0}; |