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

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

Debugging explanation:It is similar to the pervious one
But in these assign operation and increment operation happened in different line.
In the

line 4:it assign value
line5:it increment the value

Note: these principal is used in the common for loop
for(i=0;iIn the for loop first line i value is 0 then after the first line when use i value is increment by one

Related post