If 'i' is a variable, i++ denotes
UGC NET - 2013,
Answer: B
The statement i++ means that i is incremented once. In C the post-increment operator adds 1 to the variable after its current value has been used in the expression. It does not add 2, so (A) and (C) are wrong, and it has nothing to do with multiplication, which rules out (D). The pre-increment form ++i also adds exactly one, and the difference between the two forms is only the moment at which the new value becomes visible in the surrounding expression.
Please log in or register to report this question.