Exercise :: Input / Output - Point Out Correct Statements
- Input / Output - General Questions
- Input / Output - Find Output of Program
- Input / Output - Point Out Errors
- Input / Output - Point Out Correct Statements
- Input / Output - True / False Questions
- Input / Output - Yes / No Questions
1. | Which of the following statement is correct about the program?
|
|||||||
Answer: Option D Explanation: This program counts the number of lines in the file myfile.c by counting the character '\n' in that file. |
2. | Which of the following statement is correct about the program?
|
|||||||
Answer: Option B Explanation: This program reads the file INPUT.TXT and store it in the string str after reversing the string using strrev function. |
3. | Point out the correct statements about the program?
|
|||||||
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. |