Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > operator >> on signed in c89

Reply
Thread Tools

operator >> on signed in c89

 
 
Simon Aittamaa
Guest
Posts: n/a
 
      10-12-2005
The value of E1 >> E2 when E1 has a signed type and is negative is
implementation-defined in c99 (6.5.7), is that the case for c89 as well?

I'm guessing it is but I would like to be sure. Does anyone have a good
web-resource of the c89 standard?

- Simon Aittamaa
 
Reply With Quote
 
 
 
 
Eric Sosman
Guest
Posts: n/a
 
      10-12-2005


Simon Aittamaa wrote On 10/12/05 14:19,:
> The value of E1 >> E2 when E1 has a signed type and is negative is
> implementation-defined in c99 (6.5.7), is that the case for c89 as well?


ANSI Classic 3.3.7 (probably a different section number
in ISO's version):

The result of E1 >> E2 is [...]. If E1 has a signed
type and a negative value, the resulting value is
implementation-defined.

--
http://www.velocityreviews.com/forums/(E-Mail Removed)

 
Reply With Quote
 
 
 
 
Simon Aittamaa
Guest
Posts: n/a
 
      10-12-2005
Eric Sosman wrote:
>
> Simon Aittamaa wrote On 10/12/05 14:19,:
>
>>The value of E1 >> E2 when E1 has a signed type and is negative is
>>implementation-defined in c99 (6.5.7), is that the case for c89 as well?

>
>
> ANSI Classic 3.3.7 (probably a different section number
> in ISO's version):
>
> The result of E1 >> E2 is [...]. If E1 has a signed
> type and a negative value, the resulting value is
> implementation-defined.
>


Thanks

- Simon Aittamaa
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert a signed binary number into a signed one ? Rob1bureau VHDL 1 02-27-2010 12:13 AM
signed(12 downto 0) to signed (8 downto 0) kyrpa83 VHDL 1 10-17-2007 06:58 PM
Any big differences between final draft before C89 and actual C89 standard? G Patel C Programming 1 02-07-2005 11:03 PM
ISO C89 and ISO C99 jrefactors@hotmail.com C++ 13 12-20-2004 06:29 AM
long long extended type in c89? j C Programming 5 08-26-2003 03:52 AM



Advertisments