Hello - I have this code, and I want to make sure it is incrementing like I am hoping...can someone look at the logic and verify whats happening?
so, I want to set the array elements, p[0] = P, p[1] = 20, p[3] = 3, and p[4]=checksum value, and then i is 5. Is this what is happening? Is the 4th element actually p[3]?? Please help...
btw - I obviously can't increment i and use it in the checksum funciton (illegal b/c sequence points)...
thanks!
Code:
int p[50]; i = 0; p[i++] = 'P'; p[i++] = 20; p[i++] = 3; p[i] = checksumFunct(p[1] , (i - 1) ); i++;
btw - I obviously can't increment i and use it in the checksum funciton (illegal b/c sequence points)...
thanks!
Comment