c++ - what does ++operator do in this void uart_puts(unsigned char * t) { while(*t) uart_putch(*t++); -
c++ - what does ++operator do in this void uart_puts(unsigned char * t) { while(*t) uart_putch(*t++); -
what ++
operator in c program?
void uart_puts(unsigned char *t) { while (*t) uart_putch(*t++); //i cant understand operation here }
pointer arithmetic:
the sentence uart_putch(*t++) can discomposed in:
uart_putch(*t); // actual t unsigned char value t++; // increments t pointer next unsigned char
c++ c
Comments
Post a Comment