#include <iostream>
using namespace std;
const int SIZE = 10;
void arrIncrement(int* arr){
for(int i = 0; i < SIZE; ++i){
arr[i]++;
}
for(int i = 0; i < SIZE; ++i){
cout << arr[i] << " ";
}
cout << endl;
}
int main(){
int arr[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
arrIncrement(arr);
return 0;
}
Comments
Leave a comment