putchar : putchar « stdio.h « C Tutorial






ItemValue
Header filestdio.h
Declarationint putchar(int ch);
Functionoutput character to stdout.
Returnreturns 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








22.26.putchar
22.26.1.putchar