C numeric constant suffix for "short"

Possible duplicate:
How to write a short literal in C ++?

Is there a suffix for short int numeric constants in C? There are u , l , d and f for unsigned, long, double and float, but I could not find them for short .

I do a very small lever interruption and I need 2 byte numeric constants. The system I'm working on ensures that the short int is 2 bytes, so this is not a problem. It is built-in, so please do not worry about portability suggestions.

+7
source share
1 answer

Checking standard C, such a short prefix for shorts does not exist.

+3
source

All Articles