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
- Star Topology
- Bus Topology
- Ring Topology
- Mesh Topology
اس سوال کو وضاحت کے ساتھ پڑھیں
- Integration Testing
- Unit Testing
- System Testing
- Acceptance Testing
اس سوال کو وضاحت کے ساتھ پڑھیں
- True
- False
- Partially True
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
مندرجہ ذیل میں سے ڈیٹا پروسیسنگ کی درست ترتیب کون سی ہے؟
- Input → Processing → Output → Storage
- Processing → Input → Storage → Output
- Storage → Input → Processing → Output
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
- --
- ++
- +=
- **