What will be the output of the following C code?#include int main(){FILE *fp = stdout;stderr = fp;fprintf(stderr, "%s", "hello");}

🎲 Try a Random Question  |  Total Questions in Quiz: 258  |  🧠 Study this quiz with Flashcards
This question is part of a full practice quiz:
C Programming Practice Test: C Input and Output — practice the complete quiz, review flashcards, or try a random question.

C Input and Output quiz on: Standard input and output, formatted input and output, variable length argument, file access, error handling, line input and output, string operations, character class testing, ungetc, storage management, mathematical functions, random number generation, file operations, printf and scanf.
 


What will be the output of the following C code?<br>#include <stdio.h><br>int main()<br>{<br>FILE *fp = stdout;<br>stderr = fp;<br>fprintf(stderr, "%s", "hello");<br>}