mardi 28 juillet 2015

Why is "true;" (and others) a valid line of code C++?

Adding true; / false; is clearly valid C++ code. It compiles and runs just fine.

Similarly, this is the same for statements like int;, void;, {}(no ()), 1+1;, 1 == 1;, or even just 1; ... why? (I'm using Visual C++)

Aucun commentaire:

Enregistrer un commentaire