Ok, I'm playing a bit with a code, trying do understand some tricks and how does it work, so I don't understand output of this code
int i = 8;
printf("%d", printf("%o", i));
result of this is 102, I don't know how, I know that 8 in octal system is 10, but what most confuses me is when I put space after %o
like this
printf("%d", printf("%o ", i));
now, result is 10 3, what is going on here?