Why people write such cryptic code I will never understand...
Can someone explain what is going on in the following:
double color = {1,2,3};
double *ptr;
// ... assign ptr ....
*ptr = *color++;
ptr++;
So this line *ptr = *color++;
sets the value of the first location of the ptr array to the first location of the color array, and then increments the color array? So the next time *ptr =*color
is called, *color will now be 2 instead of 1? Is this correct?
Dave