Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Georg Wittig <Georg.Wittig@gmd.de>
To: axp-list@redhat.com
Subject: Re: ccc error
Date: Tue, 9 Jan 2001 10:49:41 +0100	[thread overview]
Message-ID: <20010109104941.A23344@twister.gmd.de> (raw)
In-Reply-To: <Pine.LNX.4.10.10101090223500.20236-100000@cc42593-a.taylor1.mi.home.com>; from jeff.sturm@appnet.com on Tue, Jan 09, 2001 at 02:26:18AM -0500

jeff.sturm@appnet.com wrote:


> Does anyone know if the following is valid C:
> 
> extern int a;
> extern int b;
> 
> void f(int x) {
> 	(x ? a : b) = 1;
> }


(OT, because this question has nothing to do with axp)

Don't know if it's valid C. But remember you can always write this as
	* (x? &a : &b) = 1;



-- 
Georg Wittig, GMD				Georg.Wittig@gmd.de
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Du hast keine Spracherkennung installiert? Doch Komma aber Mai Stenz
Macht Sie den um Gang mit dem Juice nett auch nicht leichter.




  reply	other threads:[~2001-01-09  9:49 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <Pine.LNX.4.10.10101090204570.19797-100000@cc42593-a.taylor1.mi.home.com>
2001-01-09  7:26 ` ccc error jeff.sturm
2001-01-09  9:49   ` Georg Wittig [this message]
2001-01-09  9:58     ` Uncle George
2001-01-09 16:35     ` Michal Jaegermann
2001-01-09 13:51   ` Greg Lindahl
2001-01-09 13:59     ` Thomas Leitner
2001-01-09 16:51     ` Jeff Sturm
2001-01-09 18:05       ` ccc error [OT] Chris Eleveld (Sector 7 Group)
2001-01-09 18:20         ` Michal Jaegermann
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox