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

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

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.

  1. fclose() 
  2. feof() 
  3. fopen() c. Reads formatted input from a file
  4. fprintf() d. Reads formatted input from stdin
  5. printf() e. Reads a line from a file and stores it into a string
  6. sprintf() f. Reads a line from stdin and stores it into a string
  7. fscanf() g. Writes a string (plus newline character) to stdout
  8. scanf() h. Writes a string (plus newline character) to a file
  9. sscanf() i. Test the end-of-file indicator for a file
  10. fgets() j. Reads formatted input from a string
  11. fputs() k. Sends formatted output to a string
  12. gets() l. Close a file
  13. 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
Transcribed Image Text: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
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
File Input and Output Operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education