1.

Which of the following is C++ equivalent for printf()?(a) cin(b) cout(c) print(d) inputI had been asked this question during an internship interview.The origin of the question is C++ Concepts in chapter Basics Concepts of C++ of C++

Answer»

The correct option is (b) COUT

The explanation is: C++ uses cout to PRINT output to console. HOWEVER C++ ALSO uses printf().



Discussion

No Comment Found

Related InterviewSolutions