1. If fp=-NULL, the line fgets(line,40,fp); would execute correctly.

Oracle 12c: SQL
3rd Edition
ISBN:9781305251038
Author:Joan Casteel
Publisher:Joan Casteel
Chapter10: Selected Single-row Functions
Section: Chapter Questions
Problem 8RQ
icon
Related questions
Question
true or false and explain why
1. If fp=3NULL, the line fgets(line,40,fp); would execute correctly.
Transcribed Image Text:1. If fp=3NULL, the line fgets(line,40,fp); would execute correctly.
Assume fp is of type FILE
Code fragment 1:
for(j-0j<filelength:j++){
fgets(line,40,fp):
ifj=-check){
printf"--%s\n",line);
if(!strcmp(line,answer)) {
counter++;
Transcribed Image Text:Assume fp is of type FILE Code fragment 1: for(j-0j<filelength:j++){ fgets(line,40,fp): ifj=-check){ printf"--%s\n",line); if(!strcmp(line,answer)) { counter++;
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Program on Numbers
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
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr