What is the correct syntax to access the value at address ptr in C, where ptr is a pointer?
- ©ptr
- *ptr
- ptr*
- None of these
Explanation
In C, the asterisk (*) symbol is used to dereference a pointer.
It means to access the value stored at the address held by the pointer.
Therefore, *ptr is the correct syntax to access the value at the address ptr.
Related MCQs
انٹرنیٹ کنکشن کے لیے کون سا آلہ ضروری ہے؟
- Joystick
- Modem
- CD drive
- NIC card
اس سوال کو وضاحت کے ساتھ پڑھیں
جنک ای میل کا دوسرا نام کیا ہے؟
- Spoof
- Spill
- Spam
- Spat
اس سوال کو وضاحت کے ساتھ پڑھیں
ڈاس آپریٹنگ سسٹم کس پر مبنی ہے؟
- Graphical User Interface
- Command Line Interface (CLI)
- Touch User Interface
- Voice User Interface
اس سوال کو وضاحت کے ساتھ پڑھیں
- Fourth generation computer
- First generation computer
- Third generation computer
- Second generation computer
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
پاس ورڈ توڑنے یا اندازے سے معلوم کرنے کے عمل کو عام طور پر کیا کہا جاتا ہے؟
- Hacking
- Phishing
- Cracking
- Formatting