Which is the correct answer regarding ‘\n’ and endl? A. Both are same. B. ‘\n’and endl both are used to print new line but endl flushes the buffer after printing new line. C. ‘\n’ and endl both are used to print new line but ‘\n’ flushes the buffer after printing new line. D. ‘\n’used in C programming while endl used in C++ programming. Answer Workspace Report Discuss Answer with explanation Answer: Option B Explanation ‘\n’ and endl both are used to print new line but endl flushes the buffer after printing new line. Workspace
Discuss about the question