Which operator is used as the increment operator in C/C++?
- --
- ++
- +=
- **
Explanation
++ adds 1 to a variable.
- a++ (post): uses the value, then increments.
- ++a (pre): increments, then uses value.
- -- decrements the same way.
- Alone in a statement, both forms behave identically.
Related MCQs
ریم سے کیا مراد ہے؟
- Random Access Memory
- Random Access Money
- Random Accurate Memory
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
لیزر پرنٹر پرنٹنگ کے لئے ______ استعمال کرتا ہے۔
- Liquid ink
- Laser
- Ink ribbon
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
- Hard drive disk
- High destination driver
- High destination disk
- None
اس سوال کو وضاحت کے ساتھ پڑھیں
الگ الگ نیٹ ورکس کے دو مختلف کنکشن کو کیا جوڑتا ہے؟
- Router
- Switch
- Hub
- Modem
اس سوال کو وضاحت کے ساتھ پڑھیں
- Bus topology
- Star topology
- Ring topology
- Hybrid topology