Am I right here?

From: Paul F. Johnson (
Date: 01/22/04

Date: Thu, 22 Jan 2004 01:45:13 +0000


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.

Is this also more efficient (processor wise) to do this than to have

int a = 0, b = 0, c =0;


int a , b, c;
a = 0;
b = 0;
c = 0;



One OS to fool them all
One browser to find them
One email client to bring them all
And through security holes, blind them...