adplus-dvertising
frame-decoration

Question

Choose a correct syntax for FSCANF and FPRINTF in c language?

a.

fprintf("format specifier",variables, fp);
fscanf("format specifier",variables, fp);

b.

fprintf(fp,count,"format specifier",variables);
fscanf(fp,count,"format specifier",variables);

c.

fprintf(fp,"format specifier",variables);
fscanf(fp,"format specifier",variables);

d.

None of the above

Posted under C Programming

Answer: (c).fprintf(fp,"format specifier",variables);
fscanf(fp,"format specifier",variables);

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Choose a correct syntax for FSCANF and FPRINTF in c language?

Similar Questions

Discover Related MCQs

Q. What are the Cfunctions used to read or write a file in Binary Mode?

Q. What are the C functions used to read or write a file in Text Mode?

Q. What is the need for closing a file in C language?

Q. Where is a file temporarily stored before read or write operation in C language?

Q. What is a C FILE data type?

Q. What is the keyword used to declare a C file pointer?

Q. What is the need for a File when you can store anything in memory?

Q. EOF is an integer type defined in stdio.h and has a value ____________

Q. _____removes the named file, so that a subsequent attempt to open it will fail.

Q. Which is true about what getc returns?

Q. Select text file in which number will take.

Q. While calling the fprintf() function in the format string conversion specifier %s can be used to write a character string in capital letters.

Q. A text stream is an ordered sequence of characters composed into lines, each line consisting of zero or more characters plus a terminating new-line character.

Q. A file written in text mode can be read back in binary mode.

Q. In fopen(), the open mode "wx" is sometimes preferred "w" because

1) Use of wx is more efficient.
2) If w is used, old contents of file are erased and a new empty file is created. When wx is used, fopen() returns NULL if file already exists.

Q. Which of the following is data type of file pointer?

Q. stderr, stdin, stdout are FILE pointers.

Q. Offset used in fseek() function call can be a negative number.

Q. We should not read after a write to a file without an intervening call to fflush(), fseek() or rewind().

Q. Select a function which is used to write a string to a file.