1.

What will be the output of the following C code?#include <stdio.h>#include <string.h> int main() { char line[]; fgets(line, 25, stdin); printf("%d n", strlen(line)); return 0; }

A. 25
B. Any length since line did not end with null character
C. Compilation Error
D. Runtime Error
E. None of these
Answer» D. Runtime Error


Discussion

No Comment Found

Related MCQs