What does ā€œLā€ mean at the end of an integer literal?

I have this constant:

#define MAX_DATE 2958465L 

What does L mean in this sense?

+20
c ++
Jun 02 '10 at 13:18
source share
1 answer

This is an integer literal long .

Integer literals are of type int by default; the suffix L gives it a type of long (note that if the value cannot be represented by int , then the literal will be of type long even without a suffix).

+31
Jun 02 '10 at 13:19
source share



All Articles