Adding a L to the end of a literal like 32 couse : The literal use 4 bytes. ( like a Long integer ).
But i see that no matter there is a L or not, whenever i use the sizeof(), this is the variable defination which decides how many bytes this variable can save and there is no information indicating that number 32 using more bytes than usual.
short int number = 3L; cout << sizeof(number);
i can't figure it out. 2 bytes still. should'nt this make the number to save 32 as an long integer?
Thanks

New Topic/Question
Reply




MultiQuote





|