self
Maths Puzzle
#include
int main()
{
int x = 012;
printf("%d", x);
getchar();
return 0;
}
Read Solution (Total 2)
-
- the output is 10
because in this statement x=012 where first digit represents number is form of octal
thats why computer converts it Ist into decimal form like this 1*8^1+2*8^0=10 - 11 years agoHelpfull: Yes(3) No(1)
- i think there is a mistake in the question that in the first line u should have to include header file first like....
- 11 years agoHelpfull: Yes(0) No(3)
self Other Question