coalzpp
New Coder
I was tried to add one more of i and i but the result was 12. The language I tried is c. Shouldn't it be 11?
i already tried the same thing in c++ and same result. How can the sum of a number plus one more of that number be equal to two more than twice that number?
C:
#include <stdio.h>
int main() {
int i=5;
printf("%d", ++i + i);
}
i already tried the same thing in c++ and same result. How can the sum of a number plus one more of that number be equal to two more than twice that number?
Last edited by a moderator: