-
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;
}
-
- Undefined behaviour
- 25(ascii value of newline character)
- Compilation Error
- 64
- None of these
Correct Option: D
64