jeudi 1 août 2019

does subscript evaluate before the right hand side of assignment operator

I'm trying to do something like

arr[getchar()-'a'] = getchar();

is it guaranteed that the subscript here evaluates before anything else?

Aucun commentaire:

Enregistrer un commentaire