Am I right here?
From: Paul F. Johnson (paul_at_all-the-johnsons.co.uk)
Date: 01/22/04
- Next message: Artie Gold: "Re: Am I right here?"
- Previous message: Josh Sebastian: "Re: Behaviour of copy"
- Next in thread: Artie Gold: "Re: Am I right here?"
- Reply: Artie Gold: "Re: Am I right here?"
- Reply: Leor Zolman: "Re: Am I right here?"
- Reply: Jerry Coffin: "Re: Am I right here?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 22 Jan 2004 01:45:13 +0000
Hi,
Probably blindingly stupid question this, but should the line below result
in all the values being the same?
int a, b, c;
a = b = c = 0;
>From memory, they should, but somewhere lurking in there is a doubt as
ISTR it failing at one point under gcc 2.7.2.
<OT>
Is this also more efficient (processor wise) to do this than to have
int a = 0, b = 0, c =0;
or
int a , b, c;
a = 0;
b = 0;
c = 0;
</OT>
TTFN
Paul
-- One OS to fool them all One browser to find them One email client to bring them all And through security holes, blind them...
- Next message: Artie Gold: "Re: Am I right here?"
- Previous message: Josh Sebastian: "Re: Behaviour of copy"
- Next in thread: Artie Gold: "Re: Am I right here?"
- Reply: Artie Gold: "Re: Am I right here?"
- Reply: Leor Zolman: "Re: Am I right here?"
- Reply: Jerry Coffin: "Re: Am I right here?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|