C Tutorial/stdio.h/putchar
Версия от 14:21, 25 мая 2010; (обсуждение)
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.
#include <stdio.h>
int main(void){
char *str = "www.java2s.com";
for(; *str; str++){
putchar(*str);
}
}