The output of a++ will be 1, if int a = -1.
True or False
Answers
Answered by
1
Answer :
False. Because ++ is used for increase the value of a variable by one. In the above case,
a = -1 then the value of a is a= a++ , a= -1+1 , a=0
the answer will be 0 not 1.
Similar questions