Programming MCQS - QUESTION DETAILS

What is the purpose of the 'fgets' function in C?
A. Read a character
B. Read a string
C. Read an integer
D. Read a float

'fgets' is used to read a string from a file or standard input.

Similar Questions

In C, how do you declare a constant?






What is the purpose of the 'typedef' keyword in C?






Which of the following is not a valid C data type?






What does the 'printf' function do in C?






What is the role of 'calloc' function in C?






How do you define a function in C?






What is the purpose of the 'sizeof' operator in C?






What is the purpose of the 'break' statement in a switch statement?






Which function is used to read a character from the standard input in C?






What is the output of printf("%d", 5 + 3 * 2);?