#include <stdio.h>
void main()
{
int x,y,i=6;
x= i++ + ++i + i++ + ++i * --i + i++ / ++i;
printf("%d\n",i);
printf("%d\n",x);
}
my solution is:
i=6 initially.....
the expression is: i ++ + ++ i + i ++ + ++ i * -- i + i ++ / ++ i
i values are: 6 7 8 8 8 9 10 10 9 9 9 10 11 11
so i=11
x=6+8+8+10*9+9/11 == 112.818182 == 112
x=112
is this the correct solution sir????

New Topic/Question
Reply



MultiQuote












|