Ask 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 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.

+5
Answers (2)
  1. 15 July, 16:20
    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.
  2. 15 July, 16:46
    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.
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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers