C Standard Library The C library stdio.h provides several key input/output functions. For questions 1-13, please match the names to the best descriptions of their functions. fclose() feof() fopen() c. Reads formatted input from a file fprintf() d. Reads formatted input from stdin printf() e. Reads a line from a file and stores it into a string sprintf() f. Reads a line from stdin and stores it into a string fscanf() g. Writes a string (plus newline character) to stdout scanf() h. Writes a string (plus newline character) to a file sscanf() i. Test the end-of-file indicator for a file fgets() j. Reads formatted input from a string fputs() k. Sends formatted output to a string gets() l. Close a file puts() m. Opens a filename using the given mode a. Sends formatted output to a file b. Sends formatted output to stdou c. Reads formatted input from a file d. Reads formatted input from stdin e. Reads a line from a file and stores it into a string f. Reads a line from stdin and stores it into a string g. Writes a string (plus newline character) to stdout h. Writes a string (plus newline character) to a file i. Test the end-of-file indicator for a file j. Reads formatted input from a string k. Sends formatted output to a string l. Close a file m. Opens a filename using the given mode
C Standard Library
The C library stdio.h provides several key input/output functions. For questions 1-13, please
match the names to the best descriptions of their functions.
- fclose()
- feof()
- fopen() c. Reads formatted input from a file
- fprintf() d. Reads formatted input from stdin
- printf() e. Reads a line from a file and stores it into a string
- sprintf() f. Reads a line from stdin and stores it into a string
- fscanf() g. Writes a string (plus newline character) to stdout
- scanf() h. Writes a string (plus newline character) to a file
- sscanf() i. Test the end-of-file indicator for a file
- fgets() j. Reads formatted input from a string
- fputs() k. Sends formatted output to a string
- gets() l. Close a file
- puts() m. Opens a filename using the given mode
a. Sends formatted output to a file
b. Sends formatted output to stdou
c. Reads formatted input from a file
d. Reads formatted input from stdin
e. Reads a line from a file and stores it into a string
f. Reads a line from stdin and stores it into a string
g. Writes a string (plus newline character) to stdout
h. Writes a string (plus newline character) to a file
i. Test the end-of-file indicator for a file
j. Reads formatted input from a string
k. Sends formatted output to a string
l. Close a file
m. Opens a filename using the given mode
Trending now
This is a popular solution!
Step by step
Solved in 3 steps