Pointer Artimetic Gets Compiler Warning
The code:
Copy to clipboard
int testar[] = {1,2,3}; int * ptestar; ptestar = &testar+1;
Gets on its last line the warning:
Copy to clipboard
assignment from incompatible pointer type
Why would this pointer arithmetic cause this error? What is the right way to do this?
