Am I right here?

From: Paul F. Johnson (paul_at_all-the-johnsons.co.uk)
Date: 01/22/04


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...