#include<stdio.h>
#include<conio.h>
main()
{
int i=3,r;
r=(i*10) + ++i;
printf("%d",r);
getch();
}
result must be 33 but is 44.
1
Expert's answer
2012-03-15T10:41:46-0400
The result is 44 because the first operation is performed the increment (++i), for then theresult was 33 need remove the increment or write it like this: i++.
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment