What does the getche() function do in C/C++?
سی آر سی پلس پلس میں گیٹ سی ایچ () فنکشن کیا کرتا ہے؟
- It will display the character on the screen that user has entered
- It reads a character from the keyboard without displaying it on the screen
- It reads a string from the user
- None of these
Explanation
The getche() function in C/C++ (from the <conio.h> library) performs two actions:
- Reads a single character from the keyboard (immediately, without waiting for Enter).
- Echoes (displays) the character 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