Skip to main content
gamedev.net
🔒 Locked

L

Started by Forcas 2 replies 500+ views
Original Post
Forcas
Forcas
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."
-Forcas writeln("Does this actually work?");
MindFlayer
MindFlayer
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...
merlin9x9
merlin9x9
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.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.