What will be the output of the following C code? [code] #include <stdio.h> int main() { FILE *fp = stdout;

What will be the output of the following C code?
Code:
    #include <stdio.h>
    int main()
    {
        FILE *fp = stdout;
        stderr = fp;
        fprintf(stderr, "%s", "hello");
    }
A. Compilation error
B. hello
C. Undefined behaviour
D. Depends on the standard
 

Tìm kiếm

Back
Top