Given the following:
void abc(const int*, int*);
int x = 1;
int y = 2
abc(&x, &y);
Without knowing the definition of abc(), is there anyway of knowing what the values of x and y are after line 3 is executed?
This is what I believe to be true inside abc(),
x is a constant pointer that points to an int, therefore the value that is pointed to cannot change but the address that x points to CAN be changed. Is that correct?
Also, does the const in the function header apply to only the first parameter? or does it apply to both?