mardi 12 février 2019

Why are literals and temporary variables not lvalues?

I've read that lvalues are "things with a defined storage location."

And also that literals and temporaries variables are not lvalues, but no reason is given for this statement.

Is it because literals and temporaries variables do not have defined storage location? If yes, then where do they reside if not in memory?

I suppose there is some significance to "defined" in "defined storage location", if there is (or is not) please let me know.

Aucun commentaire:

Enregistrer un commentaire