473,396 Members | 1,936 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

What is the meaning 0xfb00000000000LL

What is the purpose of the LL in the end , Any way it is long long

Oct 3 '07 #1
6 1347
On 2007-10-03 13:27, pa********@hotmail.com wrote:
What is the purpose of the LL in the end , Any way it is long long
If you do not put the LL at the end it will be treated as a literal int,
for which the value is too big so you would not get the value you
expected. Notice also that long long is not part of the current standard
(but will be in the next).
--
Erik Wikström
Oct 3 '07 #2
Hi

Erik Wikström wrote:
On 2007-10-03 13:27, pa********@hotmail.com wrote:
>What is the purpose of the LL in the end , Any way it is long long

If you do not put the LL at the end it will be treated as a literal int,
No, currently the type is chosen as the first one that is big enough in the
sequence:

int, long int (for decimal literals)
int, unsigned int, long int, unsigned long int (for octal and hexadecimal
literals)

If it does not fit into the largest type, strictly speaking, the program is
ill-formed. However, I would expect any reasonable compiler to support long
long already.

The suffixes are useful mainly if you want to denote e.g. a small long:

void f(int);
void f(long);

f(3L); // call the long overload
Markus

Oct 3 '07 #3
On Oct 3, 11:42 pm, Erik Wikstrm <Erik-wikst...@telia.comwrote:
On 2007-10-03 13:27, parag_p...@hotmail.com wrote:
What is the purpose of the LL in the end , Any way it is long long

If you do not put the LL at the end it will be treated as a literal int,
for which the value is too big so you would not get the value you
expected.
This seems to be a fairly common misconception
(i.e. if the suffix is omitted, the value is
treated as an int regardless) - does anyone
know where it came from?

Oct 3 '07 #4
Old Wolf <ol*****@inspire.net.nzwrites:
This seems to be a fairly common misconception
(i.e. if the suffix is omitted, the value is
treated as an int regardless) - does anyone
know where it came from?
Perhaps it is because most integer constants have type int? I
imagine that programmers just extrapolate from "most" to "all".
--
Ben Pfaff
http://benpfaff.org
Oct 3 '07 #5
Old Wolf wrote:
On Oct 3, 11:42 pm, Erik Wikstrm <Erik-wikst...@telia.comwrote:
>On 2007-10-03 13:27, parag_p...@hotmail.com wrote:
>>What is the purpose of the LL in the end , Any way it is long long
If you do not put the LL at the end it will be treated as a literal int,
for which the value is too big so you would not get the value you
expected.

This seems to be a fairly common misconception
(i.e. if the suffix is omitted, the value is
treated as an int regardless) - does anyone
know where it came from?
Probably from compiler bugs.
Oct 3 '07 #6
On Oct 3, 1:27 pm, "parag_p...@hotmail.com" <parag_p...@hotmail.com>
wrote:
What is the purpose of the LL in the end , Any way it is long long
The purpose of the LL is to make it a long long. Otherwise, the
type depends on the machine---on my machines, it's a long.

--
James Kanze (GABI Software) email:ja*********@gmail.com
Conseils en informatique oriente objet/
Beratung in objektorientierter Datenverarbeitung
9 place Smard, 78210 St.-Cyr-l'cole, France, +33 (0)1 30 23 00 34

Oct 4 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: jinal jhaveri | last post by:
Hi All, I have one question regarding circular inheritance I have 3 files 1) A.py , having module A and some other modules 2) B.py having module B and some other modules 3) C.py having...
112
by: Andy | last post by:
Hi All! We are doing new development for SQL Server 2000 and also moving from SQL 7.0 to SQL Server 2000. What are cons and pros for using IDENTITY property as PK in SQL SERVER 2000? Please,...
20
by: Steven T. Hatton | last post by:
I just read this in the description of how C++ is supposed to be implemented: "All external object and function references are resolved. Library components are linked to satisfy external...
17
by: candy_init | last post by:
I sometimes comes across statements which invloves the use of size_t.But I dont know exactly that what is the meaning of size_t.What I know about it is that it is used to hide the platform...
669
by: Xah Lee | last post by:
in March, i posted a essay “What is Expressiveness in a Computer Language”, archived at: http://xahlee.org/perl-python/what_is_expresiveness.html I was informed then that there is a academic...
132
by: Frederick Gotham | last post by:
If we look at a programming language such as C++: When an updated Standard comes out, everyone adopts it and abandons the previous one. It seems though that things aren't so clear-cut in the C...
22
by: nospam_news | last post by:
I currently get asked about my usage of "auto". What is it for? The keyword is clearly superflous here. In contrast to the huge majority of C/C++ developers I write definitions very explicitly...
4
by: Virtual_X | last post by:
it's only language confusion i am non-english speaker so i heard about stream in alot of c++ tutorials ie: in iostream and in sstream headers in sstream we use the class stringstream to...
5
by: =?Utf-8?B?Sm9seW5pY2U=?= | last post by:
Hi everyone, I am learning c# and i don´t understand a piece of code , can anyone explain the meaning of this code please. public class vector { public double? R = null; //I suppose this...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.