int var; var=4; var=var*var; var=var+var; /* var=var/var; var=var%var; /*
Hey,
Regarding your question I'm going to determine the output of the above program by showing you the calculation in each and every step, please go through once:
int var;
var=4;
var= var*var; (4*4=16)
var=var+var; (16+16=32)
/* var= var/var;
var= var% var;/*
Here '/*' symbolizies that it's the comment line used in the platform 'Codeblock', so it can't be calculated and and we have to skip these lines. If there was no comment line, then 'Codeblock' would calculate these institutions and the final value of 'var' would become 0. [var= var/var (32/32=1) and var=var%var= 1%1= 0]
However for now, leave it.
According to your question your final output value must be 32.
Hope you've understood this. If you still have any query regarding this, feel free to ask in the comment section, I'll definitely answer.




