c++ - Postfix LL for type long long -


this basic.

while defining type long long expression like.

long long x=5435666ll; 

i cant understand why ll post fixed since without post-fix quite clear compiler allocate right memory space(8 bytes in vc++) anyways in absence of post-fix.

so purpose 'll' post-fix serves?

your code equivalent to

long long x; x = 5435666ll 

without ll suffix, 5435666 int. in either case result same because 5435666 fits in int, unless you're on 16 bit platform.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -