Home / MCQ Bank / Computer
Computer Plus Plus Miscellaneous

What will be the output of the following C++ code? #include <stdio.h> int main () { freopen ("myfile.txt", "w", stdout); printf ("This sentence is redirected to a file"); fclose (stdout); return 0; }

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option C • This sentence is redirected to a file

Related Computer Questions

Which of this method is used to change an element in a LinkedList Object? The minimum time delay required between the initiation of two successive memory operations is known as What is the output of the given code? Ans=Ruby puts "#[Ans] is an oop language" Which property among the following represents the current position of the stream? What is the purpose of the File.GetLastWriteTime() method in C#?