GAT Subject
Engineering
Computer Science Civil Engineering Chemical Engineering Agricultural Engineering Mechanical Engineering Electronics and Communication
2. | Which of the statements is correct about the program? | |
A. | The code writes a text to a file | |
B. | The code writes a text to a file in reverse order | |
C. | The code reads a text files and display its content in reverse order | |
D. | None of above | |
Answer: Option C | |
Explanation: | |
This program reads the file INPUT.TXT and store it in the string str after reversing the string using strrev function. |
|
Tutorial Link: |