Which of the following is the right answer regarding 'n' and endl?
A. They are both the same.
B. 'n' and endl are both used to print a new line, but endl flushes the buffer after printing the new line.
C. Both 'n' and endl are used to print a new line, but 'n' flushes the buffer after printing the new line.
D. 'n is used in C programming, whereas endl is used in C++ programming.
Answer:B
Which of the following is the right answer regarding 'n' and endl?
A. They are both the same. B. 'n' and endl are both used to print a new line, but endl flushes the buffer after printing the new line. C. Both 'n' and endl are used to print a new line, but 'n' flushes the buffer after printing the new line. D. 'n is used in C programming, whereas endl is used in C++ programming.
Explanation: Both 'n' and endl are used to print a new line, but endl flushes the buffer after printing the new line.