1.

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

A. Undefined behaviour
B. 25(ascii value of newline character)
C. Compilation Error
D. 64
E. None of these
Answer» E. None of these


Discussion

No Comment Found

Related MCQs