Sunday, February 13, 2011

Input/Output Function

Input/Output Function

stdin
stdin
stdout
stderr
The input/output function are stream of characters,then character based input and output fucntion
getc()
putc()
getchar()
putchar()

this are all character based input and output functions, that is u need to some of the texts("strings") means u need to hatch these functions.


This is the program for accept/ display the characters

#include<stdio.h>
main()
{
char alph;
alph=getc(stdin);
fflush(stdin);
putc(alph,stdout);
}
this session to be continued..

No comments:

Post a Comment