I am trying to give it some change as experimental, and one of them is to put various form of pointers instead of "numbers" and "numbers+3"
What I did and didn't work was :
int numbers[]={10,20,30};
int *stop; stop = numbers[2] // which is 30
increment all( numbers, stop)
-----------------------------------------------------------------
I also tried "numbers[2]" instead of "stop" and it didn't work too.
What are the rules for things to be in parameters?
If you want to stop at 30, then take the address of numbers[2]
int *stop = &numbers[2];
PLEASE USE CODE TAGS (the <> formatting button) when posting code.
It makes it easier to read your code and also easier to respond to your post. http://www.cplusplus.com/articles/jEywvCM9/
Hint: You can edit your post, highlight your code and press the <> formatting button.