What will be the output of a++, if int a= -1;?
36 Likes
-1
Reason — a++ uses an increment postfix operator which works on the principle- 'Action then change'. Hence, first the value of a is printed and then it is incremented.
Answered By
9 Likes
A set of characters is assigned to a:
The statement n += 4 is equivalent to:
If int a=25, b=5, c=0; what value is stored in c when c = a%b?
What will be the result of m in the expression m*=8 if m=8; ?