#include <iostream>
using namespace std;
void change(int arr[]){
arr[0]=9;
}
int main() {
int arr[3] = {4,6,8};
for (int i=0;i<=2;i++ ) {
cout<<arr[i]<<endl;
}
cout<<"2nd answer"<<endl;
change(arr);
for (int i=0;i<=2 ;i++ ) {
cout<<arr[i]<<endl;
}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: