0
I know that with %i you can read numbers in decimal, hexadecimal, and octal, but when I type 0x15, the number 21 appears, being that it was fifteen that was appear or I am mistaken ?
Example below
#include <stdio.h>
int main(int argc, char** argv)
{
int n = 0x15;
printf("%d\n",n);
return 0;
}
Thanks @Leticia Rosa
– rafael marques