FREE TUTORIALS ON C programming

Sunday, January 26, 2014


#include<stdio.h>


int main()


{

    int a; //integer declaration

    a = getc(stdin); //reads a single character into a

    
    fflush(stdin); //flushes the carriage return
    
    putc(a,stdout); //prints to the standard output the value of a
    
    getchar();      //waits for character input
    
    return 0;
    
}
12:32 AM   Posted by Unknown with No comments

0 comments:

Post a Comment

Bookmark Us

Delicious Digg Facebook Favorites More Stumbleupon Twitter

Search