C Tutorial/stdio.h/putchar
putchar
Item Value Header file stdio.h Declaration int putchar(int ch); Function output character to stdout. Return returns the character written if successful or EOF on error.
<source lang="cpp">#include <stdio.h>
int main(void){
char *str = "www.java2s.com"; for(; *str; str++){ putchar(*str); }
}</source>