#include #include using namespace std; void f(int *p, const int *q); int main() { int a[] = {10, 20, 30}; int b[] = {40, 50, 60}; f(a, b); return EXIT_SUCCESS; } void f(int *p, const int *q) { p[0] = 70; //change the 10 to 70 //q[0] = 80; //won't compile: try to change the 40 to 80 }