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
مندرجہ ذیل میں سے کون سا سنگل یوزر آپریٹنگ سسٹم ہے؟
- DOS
- Windows
- Linux
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
- Cannot be determined
- Data inadequate
- Both A and B
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
کمپیوٹرز کے درمیان ڈیٹا کی منتقلی کس کے ذریعے کی جاتی ہے؟
- Protocol
- Data Bus
- Both A and B
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
کون سا پروگرام کمپیوٹر کے کام کرنے کو سمجھنے اور منظم کرنے میں مدد کرتا ہے؟
- FIFO
- OS
- SS
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
- 2 bytes
- 4 bytes
- 8 bytes
- 16 bytes