P
PengYu.UT
Hi,
Would you please let me know where max and min int are defined in C++?
Best wishes,
Peng
Would you please let me know where max and min int are defined in C++?
Best wishes,
Peng
Hi,
Would you please let me know where max and min int are defined in C++?
Best wishes,
Peng
Hi,
Would you please let me know where max and min int are defined in C++?
Josh said:I believe it's compiler dependent, as on a certain 32-bit compiler, int
may be 4 bytes, but on a certain 64-bit compiler, int may be 8 bytes.
Mike Wahler said:They are *declared* by the standard header <algorithm>.
Where they are *defined* is implementation-dependent.
(Although in all cases I've seen, the definitions themselves
are in the header, so serve as the declarations)
A good C++ book can answer this type of question. IMO
the best one specifically about the standard library
is: www.josuttis.com/libbook
Would you please let me know where max and min int are defined in C++?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.