getchar and putchar are used for the input or output only one character.
getchar()
It returns an int which is either EOF(indicating end-of-file) or the next character in the standard input stream.
putchar(c)
puts the character on the output stream.
int main()
{
int a;
a = getchar();
/* read and assign character to c */
putchar(a);
/* print c on the screen */
return 0;
}
About goddem
Templatesyard is a blogger resources site is a provider of high quality blogger template with premium looking layout and robust design. The main mission of templatesyard is to provide the best quality blogger templates which are professionally designed and perfectlly seo optimized to deliver best result for your blog.
Subscribe to:
Post Comments (Atom)

No comments:
Post a Comment