L

Started by
2 comments, last by Forcas 22 years, 8 months ago
I often see people putting L after numbers in their code. This may be a stupid question, but what does that L mean? -Forcas "Elvis is alive. He is Barney the purple dinosaur. He is the pied piper that leads our children into the wages of sin and eternal damnation."
-Forcaswriteln("Does this actually work?");
Advertisement
float - 1.0f;
long - 0L;

I think....


Ignite Software Ltd.
Yes, L means long (AFAIK).
But in front of the string: L"test.txt", it converts your string to WideChar-mode. (VC++ macro ?)


Press any key to continue or any other key to quit...
The L suffix makes the numeric constant a long, just like U makes it unsigned.

The L prefix is a standard C++ language feature; in other words, it has nothing to do with VC++ or any other compiler. However, L is not part of C, so it''s an extension in compilers that allow it.

This topic is closed to new replies.

Advertisement