If a = 12, give the value of the following expression: a++
Advertisements
प्रश्न
If a = 12, give the value of the following expression:
a++
संख्यात्मक
Advertisements
उत्तर
Given: a = 12
Expression: a++
The post-increment operator (a++) first uses the current value of a and then increases it by 1.
Value of expression = 12
After increment: a = 12 + 1 = 13
- Value of expression (
a++) = 12 - New value of a = 13
shaalaa.com
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
