Home » C Programming » Error Handling » Question
  1. What will be the output of the following C code?
     #include <stdio.h>
    int main()
    {
    char buff[25];
    stderr = stdin;
    fscanf(stderr, "%s", buff);
    printf("%s\n", buff);
    }
    1. Whatever user types
    2. Compilation error
    3. Undefined behaviour
    4. Nothing
    5. None of these
Correct Option: A

Whatever user types



Your comments will be displayed only after manual approval.