Increment operator in c/c++|before the variable

main()
{
int j=4;
printf(“%d”,++j);
} Tutorial answer:
5
Debugging explanation:
++Var indicate
first it increase the value
then it will assign. Because increment operator come the before the variable.

Post a Comment

0 Comments