Is there any advantage to write like this?

if I write a class default construction function from

1
2
3
4
5
6
wallBoundary_t() {
		u=0;
		v=0;
		pDer=0;
		cDer=0;
	}


to

1
2
3
wallBoundary_t() {
		u=v=pDer=cDer=0;
	}


is there any advantage by doing so? no matter it is speed or storage, or is there any disadvantage?
Last edited on
Nope and nope. It is all the same.

The former is a little more readable than the latter, though.
Thanks!
Topic archived. No new replies allowed.