In the following statement
fprintf(fpt,"%n",i),
the variable fpt is a/an
A. | Integer variable |
B. | Arbitrarily assigned value |
C. | Pointer to a file |
D. | Special kind of variable called file |
Option: C Explanation : Click on Discuss to view users comments. |
A. | Nothing |
B. | A value 0 or 1 depending on whether the file could be opened or not. |
C. | A pointer to FILE filename,if it exits |
D. | A pointer to a new file after creating it. |
Option: C Explanation : Click on Discuss to view users comments. |
A. | Data in a file |
B. | stderr |
C. | stdin |
D. | string |
Option: D Explanation : Click on Discuss to view users comments. |
A. | items |
B. | inven.txt |
C. | either (a) or (b) |
D. | None of these |
Option: B Explanation : Click on Discuss to view users comments. |
A. | The file sample does not exist while fopen is being executed |
B. | The file sample could not be created for writing |
C. | fpt is declared as a FILE pointer |
D. | The file sample is read only |
Option: B Explanation : Click on Discuss to view users comments. |
Syllabus Covered in this section is
This Section covers Multiple Choice Questions Answers in C Programming . Here questions answers are given with explanation and references. These questions can be used for the preparation of various competitive and academic exams.
Who can benefit -
Various Search Terms used for this section are