Example :
if (i < n) i++; else j += 2;
i did :
i += i < n ? 1 : j += 2;
(but compiler show error)
how can i write those lines as Ternary Operators if it is possible .. thanks ...
Aucun commentaire:
Enregistrer un commentaire