What is the meaning of variable++?
Advertisements
प्रश्न
What is the meaning of variable++?
लघु उत्तर
Advertisements
उत्तर
- In Java,
variable++represents the Post-Increment Operator, which is used to increase the value of a variable by 1. It is a unary operator because it operates on a single operand. - In post-increment, the original value of the variable is used first in an expression, and then its value is increased by 1. It is commonly used in loops and other programming statements where the value of a variable needs to be increased by one.
shaalaa.com
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
