Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

solve it asap 19- question Consider the following piece of code that opens a file with file pointer fp, in this file student name, surname

solve it asap
image text in transcribed
19- question Consider the following piece of code that opens a file with file pointer fp, in this file student name, surname and grade is stored in each line of this file, this code aims to read each line from the file and print them on the screen; while (! feof(fp)) printf("- $s $s $d ", name, surname, grade); 3 Assume the file has already been opened with file pointer fp, and all the rest of the variables have already been declared. Choose the correct statement for missing part. a) fscanf(*fp,"%s %s %d ", name, surname, &grade); b) fscanf (*fp,"%s %s %d ", name, &surname, &grade); c) fscanf(fp,"%s %s %d ", name, surname, sgrade); d) Escanf(fp,"%s es d ", aname, &surname, agrade); correct answer: a b) correct answer: b correct answer: d) correct answer:d

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Transactions On Large Scale Data And Knowledge Centered Systems Xxviii Special Issue On Database And Expert Systems Applications Lncs 9940

Authors: Abdelkader Hameurlain ,Josef Kung ,Roland Wagner ,Qimin Chen

1st Edition

3662534541, 978-3662534540

More Books

Students also viewed these Databases questions