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
![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. [1 point each]
1. fclose ()
a. Sends formatted output to a file
b. Sends formatted output to stdout
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
I. Close a file
m. Opens a filename using the given mode
2. feof ()
3. fopen ()
4. fprintf()
5. printf()
6. sprintf()
7. fscanf()
8. scanf()
9. sscanf ()
10. fgets ()
11. fputs ()
12. gets ()
13. puts ()
Please record your final answers here:
1
3
4
6.
7
8
9.
10
11
12
13](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F8cb58778-70ba-4f7e-90ce-7267bd79a013%2F37d21ef9-7943-4e25-8515-2a8280ee150f%2F32zywtg_processed.png&w=3840&q=75)

Trending now
This is a popular solution!
Step by step
Solved in 3 steps









