I can define literal numbers in C and C++ with the help of suffix L
, U
, D
, etc like this:
34656345L
94375804U
3.141593F
...
So in the expression they appear the compiler knows their types. Is the a similar way to define 1-byte literal numbers like char
? I know I could use (char)28
for example, but probably there's a suffix I haven't found.
I have had a look at this page http://www.cplusplus.com/doc/tutorial/constants/ but no char constants mentioned there.