If you want to clear previous screen output while running a C/C++ program, which function will you use?
- clrscr();
- clear_screen();
- scanf();
- None of these
Explanation
clrscr() is a function used to clear the console screen in C/C++ (usually with conio.h library).
It helps to remove previous output before displaying new information on the screen.
Related MCQs
کون سا آپریٹنگ سسٹم ملتے جلتے کاموں کو گروپ بنا کر بیچز کی صورت میں چلاتا ہے؟
- Real-time operating system
- Batch operating system
- Distributed operating system
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
کمپیوٹر کے مدر بورڈ پر سی ایم او ایس بیٹری کا کیا کام ہے؟
- To power the processor
- To maintain system time and BIOS/UEFI settings
- To increase internet speed
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
درج ذیل میں سے کون سی آپٹیکل اسٹوریج ڈیوائس کی مثال ہے؟
- SSD
- DVD Drive
- Hard drive
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
جی این یو آپریٹنگ سسٹم کا منصوبہ کس نے شروع کیا؟
- Bill Gates
- Steve Jobs
- Richard Stallman
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
مندرجہ ذیل میں سے کون سی غیر مستحکم میموری ہے؟
- RAM
- ROM
- Cache
- Both A and C