hey anyone know what the largest value that can be stored in an integer variable is? likewise is there a double / long type of deal that isnt of float type? thanks
jamboadams
0
Newbie Poster
Recommended Answers
Jump to Posthey anyone know what the largest value that can be stored in an integer variable is?
That is up to your implementation, but you can assume that the size of an int is the natural word size of your system. A 32 bit system will most likely have 32 bit …
Jump to PostThere is a file called LIMITS.H that has all the values you are looking for.
Jump to PostA 20 character long hexadecimal value would exceed any of C++'s types. Try an arbitrary precision library such as GMP.
All 9 Replies

Siersan
Tight_Coder_Ex
17
Posting Whiz in Training
jamboadams
0
Newbie Poster

Siersan
jamboadams
0
Newbie Poster
Dave Sinkula
2,398
long time no c
Team Colleague
Tight_Coder_Ex
17
Posting Whiz in Training
35nando
0
Newbie Poster
vmanes
1,165
Posting Virtuoso
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.