GAT Subject
Engineering
Computer Science Civil Engineering Chemical Engineering Agricultural Engineering Mechanical Engineering Electronics and Communication
3. | Point out the correct statements about the program? | |
A. | The code copies the content of one file to another | |
B. | The code writes strings that are read from the keyboard into a file. | |
C. | The code reads a file | |
D. | None of above | |
Answer: Option B | |
Explanation: | |
This program get the input string from the user through gets function and store it in the file f1.txt using fputs function. |
|
Tutorial Link: |