-
What will be the output of the following C code?
#include <stdio.h>
int main()
{
char num[25];
fgets(num, 24, stdin);
ungetc(num[0], stdin);
scanf("%s", num);
printf("%s\n", num);
return 0;
}
-
- First character of whatever user types first time and whatever user types second time
- Whatever string user types first time
- Whatever string user types second time
- Compilation Error
- None of these
Correct Option: A
First character of whatever user types first time and whatever user types second time