mercredi 10 août 2016

Is "int i = j = 0;" a valid C++ expression or statement?

(1) In fact, this statement fails compilation, but why is that?

(2) Does it mean, j=0 is an expression, and the value of this expression is assigned to "i"?

(3) How does C++ standard say this statement should be tokenized into sub-statements? Thanks.

Aucun commentaire:

Enregistrer un commentaire