does anybody know how to write programmes in c++ which will (a)find the range of integers in a computer system,
and,
(b)examine the floating point aritmethic.
Would really appreciate some help with this please!!!!!
Help with writing c++ programmes?
Does not look easy. May be you can contact a c++ programmer at websites like http://askexpert.info/
Reply:You can get the number of bytes in an int with sizeof( int ). For instance, it will return 4 for 32-bit integers. Then the range is -2^31 to 2^31-1.
What, exactly, are you supposed to glean from examining the floating point arithmetic? Your question isn't specific enough.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment