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