Hey, Thank you very much.. It helped me a lot. and i have edited the c program found there to my convenience.. This is my first day of programming. And I am successful. I made it like after executing the program just a enter stroke is required to kill the cmd. I am so fascinated, Hooray, I am coding well. am I right... ! he he..
Thank you once again and the code edited by me goes like this..
void myflush ( FILE *in )
ch = fgetc ( in );
while ( ch != EOF && ch != '\n' );
clearerr ( in );
void mypause ( void )
printf ( "Press [Enter] to continue . . ." );
fflush ( stdout );
int main ( void )
// Test with an empty stream
printf ( "Hello, world!\n" );