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

main()
{
int j=4;
printf(“%d”,j++);
}

Tutorial answer:4
Debugging explanation
Var++ indicate
first it assign the value
then value is increment. Because increment operator come the after the variable.

Post a Comment

0 Comments