# include <iostream>
int main () {
int a[] = {0,1,2,3,4,5,6,7,8,9};
int *p = a, pos, new_value;
cin >> pos >> new_value;
*(p+pos) = new_value;
for (int i =0; i< 10; i++){
cout << a[i];
}
return 0;
}
можеш обяснить всю программу
а зачкм здесь new_value и что оно дает?