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