#include <stdio.h> int main(void) { char string[80]; printf("Enter a string:"); gets(string); printf("The string input was: %sn", string); return 0; }Output: Enter a string: IndiaBIX The string input was: IndiaBIX
Question:Which of the following function is more appropriate for reading in a multi-word string?
A printf();
B scanf();
C gets();
D puts();
+ AnswerC
+ Explanation
+ Report