Is this the correct way to print char*? *I know c has the value I want because of the print statement below it. The o is not giving the value that I expect.
char out[50];
char *o = out;
int i = 118;
*o++ = c;
printf("o is %d (%c)\n", o[0], o[0]);
printf("o is %d (%c)\n", o[1], o[1]);
printf("o is %d (%c)\n", o[2], o[2]);
printf("c is %d \n", c);