21
What will be the output of the following C code?
#include <stdio.h>
#include <string.h>
int main()
{
char line[3];
fgets(line, 3, stdin);
printf("%d\n", strlen(line));
return 0;
} Answer & Solution
Answer: Option
B
No explanation is given for this question. Let's Discuss on Board