Let\'s take the following five examples:
// OK, most correct printf("%10.4hd XXX", (short) 2); // OK, no warning printf("%10.4d XXX", (sh