Home / MCQ Bank / Computer
Computer File Input Output Difficulty: Medium

What will be the output of the following C code? #include <stdio.h> int main() { char n[20]; fgets(n, 19, stdin); ungetc(n[0], stdin); scanf("%s", n); printf("%s\n", n); return 0; }

Select the correct option to test your answer:

More Computer Questions

Which of the following transfers data contained on computer cards to the computer system. . . . . . . . . generate random Poisson variates with a given rate. Which of the following is the correct description of EXIT_FAILURE? What does the term "polymorphism" mean in the context of Ruby programming? What event is raised when a user changes the selected item in a ComboBox control in a Windows Forms Application?