mardi 22 septembre 2015

Short/shorthand if-else. Is it common? [on hold]

Our teacher keeps using a shorthand if-else statement. Something like this: (actual example from his lecture)

c [k] = (a [i]<=b [j]) ? a [i++] : b [j++];

The reason i wonder is because this looks pretty ugly and unreadable to me.

Aucun commentaire:

Enregistrer un commentaire