I thought the following code was correct:
But this doesnt print anything with my compiler.Code:short s = ...; printf("%h\n", s);
when I do printf("%hd\n", s); it does work, but I really thought the 'd' could be omitted like with %u for instance. Is this correct?