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

Popular posts from this blog

ruby on rails - Devise Logout Error in RoR -

model view controller - MVC Rails Planning -

php - Working with pretty urls on apache and fastcgi after hhvm installation -