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