1.

What will be the output of the following C code considering user typed ajit?
#include <stdio.h>
int main()
{
char num[26];
fgets(num, 25, stdin);
ungetc(num[0], stdin);
printf("%s n", num);
return 0;
}

A. Undefined behaviour
B. jit
C. Compilation Error
D. ajit
E. None of these
Answer» E. None of these


Discussion

No Comment Found

Related MCQs