Which function is used to clear the previous screen output in C/C++?

Review the verified answer and explanation for this ETEA Educational Testing and Evaluation Agency past-paper question on CampusFin.

Which function is used to clear the previous screen output in C/C++? Answer: Clrscr()

The clrscr() function is traditionally used in C/C++ to clear the contents displayed on the console screen. It is associated with the conio.h library and was commonly available in older DOS-based compilers such as Turbo C/C++. When clrscr() is called, the existing screen output is cleared and the cursor is generally positioned at the beginning of the screen.

Question context

This question is part of 💡 C Programming within the broader 💻 Programming subject and appears in the ETEA Educational Testing and Evaluation Agency preparation collection. Reviewing the answer together with nearby questions helps reinforce the underlying concept and identify how it may appear in competitive exams.