Ask Question
30 November, 00:36

Check all that are true:

a. To use fscanf or textscan, every line in the file must have the same format.

b. The name "fid" is just a variable name; you can call it anything you want.

c. All input functions (textscan, fscanf, and fgetl) must be in a while loop that repeats until the end-of-file is reached.

+2
Answers (2)
  1. 30 November, 00:57
    0
    To use fscanf or textscan, every line in the file must have the same format (A

    Explanation:

    The fscanf and textscan is used to read lines in a file and to interpret with the format specified. hence every line in the file must have the specified format in order for the fscanf and textscan to read the lines. if any line lacks the specified format, then fscanf and textscan will only read the lines that matches and stop processing. option b is wrong because "fid" is an identifier and not just a variable name

    while input functions (textscan, fscanf etc) are pre-defined input functions and must not be in a while loop infact they are used instead of a while loop.
  2. 30 November, 01:15
    0
    a

    Explanation:

    a) the fcanf and textscan read lines one by one in the file and interpret with the format specified. If specified format is not present in the line then, then fscanf and textscan only read the portion that matches and halt processing.

    b) fid is an identifier.

    c) input functions (textscan, fscanf etc) are pre-defined input functions. They are used instead of while loop while reading a file.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Check all that are true: a. To use fscanf or textscan, every line in the file must have the same format. b. The name "fid" is just a ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers