[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

C Programming :: File Input/Output - Discussion

Home > C Programming > File Input/Output > MCQs Questions Discussion

3 / 12

Choose the correct option.

If a file contains the line "I am an Indian\r\n" then on reading this line into the array str using fgets().
what would str contain?

A"I am an Indian\r\n\0"

B"I am an Indian\n\0"

C"I am an Indian\r\0"

D"I am an Indian"

Answer: Option (Login/Signup)

Show Explanation

Asked In ::

Post Your Answer Here:     

No Discussion on this question yet!