Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C - C++ Learning > Re: Back to Sch...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 10 Topic 4102 of 4306
Post > Topic >>

Re: Back to School with Skybuck Flying: Lesson 1, Integer Basics.

by Philip Potter <pgp@[EMAIL PROTECTED] > Apr 11, 2008 at 04:42 PM

Jerry Coffin wrote:
> There are a number of ways to form values like this. For example, you 
> can create the value '-32768' as:
> 
> -32767-1
> 0x8000
> \177777

The last two are not guaranteed to work in C. Assigning a number outside
the range of an object of signed integer type has an
implementation-defined result or raises an implementation-defined
signal. (n1256 6.3.1.3p3)

> or, you can use one of the two values already provided:
> 
> SHRT_MIN
> std::numeric_limits<short>::min

Yes - that's why they're there!
 




 10 Posts in Topic:
Back to School with Skybuck Flying: Lesson 1, Integer Basics.
"Skybuck Flying"  2008-04-10 22:12:13 
Re: Back to School with Skybuck Flying: Lesson 1, Integer Basics
Jerry Coffin <jcoffin@  2008-04-11 08:37:24 
Re: Back to School with Skybuck Flying: Lesson 1, Integer Basics
Philip Potter <pgp@[EM  2008-04-11 16:42:10 
Re: Back to School with Skybuck Flying: Lesson 1, Integer Basics
Richard Heathfield <rj  2008-04-11 16:05:07 
Re: Back to School with Skybuck Flying: Lesson 1, Integer Basics
Jerry Coffin <jcoffin@  2008-04-11 11:14:22 
Re: Back to School with Skybuck Flying: Lesson 1, Integer Basics
"NoName" <No  2008-04-12 03:06:11 
Re: Back to School with Skybuck Flying: Lesson 1, Integer Basics
"Jim Langston"   2008-04-11 19:25:20 
Re: Back to School with Skybuck Flying: Lesson 1, Integer Basics
"NoName" <No  2008-04-12 05:17:44 
Re: Back to School with Skybuck Flying: Lesson 1, Integer Basics
"Skybuck Flying"  2008-04-16 11:04:33 
Re: Back to School with Skybuck Flying: Lesson 1, Integer Basics
"NoName" <No  2008-04-12 02:30:15 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Oct 15 12:19:03 CDT 2008.