Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail |
|---|---|
| NNTP-Posting-Date | Sat, 10 Sep 2011 21:41:44 -0500 |
| Message-ID | <4E6C1FEA.232D@mindspring.com> (permalink) |
| Date | Sat, 10 Sep 2011 22:41:46 -0400 |
| From | pete <pfiland@mindspring.com> |
| Reply-To | pfiland@mindspring.com |
| Organization | PF |
| X-Mailer | Mozilla 3.04Gold (WinNT; I) |
| MIME-Version | 1.0 |
| Newsgroups | comp.lang.c |
| Subject | Re: Unexpected output |
| References | <8787e0b5-b4c3-463f-bd9a-6ffc30034950@x29g2000prh.googlegroups.com> <chine.bleu-E38952.12592910092011@news.eternal-september.org> <j4gi57$taa$1@dont-email.me> <d3f78e46-caac-4746-a28f-9c7b80a09858@glegroupsg2000goo.googlegroups.com> |
| Content-Type | text/plain; charset=us-ascii |
| Content-Transfer-Encoding | 7bit |
| Lines | 18 |
| X-Usenet-Provider | http://www.giganews.com |
| NNTP-Posting-Host | 4.154.219.54 |
| X-Trace | sv3-VUdhykHYXNMcCty3V/zKLDM4eJLe3Aiq/3x6H1ItpZa+VWEJKnNquSZkKIyKEfnyttCkR6wXyLx0qne!gjXWcopvZ2xA6tuwcVjyX1IFIOt0YACcGrVbpBh7cbqj2yMbD5EQpczZjW90/oTGV9znOnVF9vs4!sKJ2mI4+2w== |
| X-Abuse-and-DMCA-Info | Please be sure to forward a copy of ALL headers |
| X-Abuse-and-DMCA-Info | Otherwise we will be unable to process your complaint properly |
| X-Postfilter | 1.3.40 |
| X-Original-Bytes | 1472 |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.c:10118 |
Show key headers only | View raw
Mazen wrote:
>
> Thanks, Eric. So, how can one achieve the desired result and guarantee a defined behavior?
#include <stdio.h>
int main(void) {
int i = 0, j, k;
j = k = 2;
i = -j;
printf("%d %d\n", j, i);
return 0;
}
--
pete
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Unexpected output Mazen <neurohacks@gmail.com> - 2011-09-10 12:36 -0700
Re: Unexpected output China Blue Corn Chips <chine.bleu@yahoo.com> - 2011-09-10 12:59 -0700
Re: Unexpected output Eric Sosman <esosman@ieee-dot-org.invalid> - 2011-09-10 16:42 -0400
Re: Unexpected output Mazen <neurohacks@gmail.com> - 2011-09-10 17:51 -0700
Re: Unexpected output Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2011-09-10 20:38 -0600
Re: Unexpected output pete <pfiland@mindspring.com> - 2011-09-10 22:41 -0400
Re: Unexpected output Eric Sosman <esosman@ieee-dot-org.invalid> - 2011-09-11 09:35 -0400
Re: Unexpected output gazelle@shell.xmission.com (Kenny McCormack) - 2011-09-11 13:39 +0000
Re: Unexpected output "BartC" <bc@freeuk.com> - 2011-09-11 15:26 +0100
Re: Unexpected output Paul N <gw7rib@aol.com> - 2011-09-11 12:08 -0700
Re: Unexpected output Eric Sosman <esosman@ieee-dot-org.invalid> - 2011-09-11 17:43 -0400
Re: Unexpected output Mazen <neurohacks@gmail.com> - 2011-09-10 13:24 -0700
Re: Unexpected output China Blue Corn Chips <chine.bleu@yahoo.com> - 2011-09-10 15:02 -0700
Re: Unexpected output Kenneth Brody <kenbrody@spamcop.net> - 2011-09-12 10:01 -0400
Re: Unexpected output arni <arnmin@gmail.com> - 2011-09-10 13:31 -0700
Re: Unexpected output Eric Sosman <esosman@ieee-dot-org.invalid> - 2011-09-10 16:49 -0400
Re: Unexpected output arni <arnmin@gmail.com> - 2011-09-10 14:13 -0700
Re: Unexpected output Eric Sosman <esosman@ieee-dot-org.invalid> - 2011-09-10 17:26 -0400
Re: Unexpected output Mazen <neurohacks@gmail.com> - 2011-09-10 17:59 -0700
Re: Unexpected output Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2011-09-10 20:52 -0600
Re: Unexpected output China Blue Corn Chips <chine.bleu@yahoo.com> - 2011-09-10 19:55 -0700
Re: Unexpected output Nick Keighley <nick_keighley_nospam@hotmail.com> - 2011-09-11 06:03 -0700
Re: Unexpected output James Kuyper <jameskuyper@verizon.net> - 2011-09-11 14:04 -0400
Re: Unexpected output Ben Bacarisse <ben.usenet@bsb.me.uk> - 2011-09-11 11:22 +0100
Re: Unexpected output Keith Thompson <kst-u@mib.org> - 2011-09-11 11:01 -0700
Re: Unexpected output Phil Carmody <thefatphil_demunged@yahoo.co.uk> - 2011-09-13 14:09 +0300
Re: Unexpected output Seebs <usenet-nospam@seebs.net> - 2011-09-13 06:44 +0000
Re: Unexpected output "Morris Keesan" <mkeesan@post.harvard.edu> - 2011-09-10 17:16 -0400
Re: Unexpected output "BartC" <bc@freeuk.com> - 2011-09-10 23:20 +0100
Re: Unexpected output August Karlstrom <fusionfile@gmail.com> - 2011-09-11 22:55 +0200
Re: Unexpected output Ben Bacarisse <ben.usenet@bsb.me.uk> - 2011-09-11 22:51 +0100
Re: Unexpected output pete <pfiland@mindspring.com> - 2011-09-11 22:25 -0400
Re: Unexpected output August Karlstrom <fusionfile@gmail.com> - 2011-09-12 15:34 +0200
Re: Unexpected output Ben Bacarisse <ben.usenet@bsb.me.uk> - 2011-09-12 19:55 +0100
Re: Unexpected output August Karlstrom <fusionfile@gmail.com> - 2011-09-13 19:22 +0200
csiph-web