1.

Which of the following escape sequence represents carriage return?(a) \r(b) \n(c) \n\r(d) \cI have been asked this question during an internship interview.This question is from Basics in division Basics Concepts of C++ of C++

Answer»

Right choice is (a) \r

Best explanation: \r is USED to represent CARRIAGE return which MEANS move the cursor to the beginning of the next line.



Discussion

No Comment Found

Related InterviewSolutions