When printing an int to stdout, the %d type is used. Why "d"? The other types (s for string, c for char, f for float) all make mnemonic sense, but I cannot figure out why "d" for int. It's not short for "double" or "decimal" I think.

%d = decimal
%o = octal
%x = hex
Seemed as plausible as anything to me.

commented: Thank you! +2

Thanks, Salem. In languages such as C# there exists a separate decimal type, and int is not a decimal. That's why I thought that something similar might be in C.

Have a great week!

%i = integer, but its the same as %d
%u = unsigned integer