Sunday, January 22, 2012

Standard Input/Output [stdio] functions in C

Discuss the following standard i/o functions in C to read/write to/from stdin/stdout
1.getc()   2.getchar()   3.gets()   4.getch()  5.getche()
6.putc()   7.putchar()  8.puts()

Discuss the following standard i/o functions in C to read/write to/from a stream [stream may be stdin/stdout]
1.fgetc() 2.fgets() 3.fputc() 4.fputs()

Also discuss the following differences.
1.getc() vs fgetc()
2.gets() vs fgets()
3.putc() vs fputc()
4.puts() vs fputs()

Useful Links:
http://www.cplusplus.com/reference/clibrary/cstdio/


No comments:

Post a Comment