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++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter7: User-defined Simple Data Types, Namespaces, And The String Type
Section: Chapter Questions
Problem 8PE: Write a program that reads in a line consisting of a students name, Social Security number, user ID,...
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
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr