putchar: output character to stdout
//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*/
Related examples in the same category