vendredi 13 décembre 2019

abbreviation of complex if else condition in c++ [duplicate]

This question already has an answer here:

In C++ can somebody help me with this please, i don't understand the ',n' in the l

int m =3, n=4;
int l = (n = ( m > n -1 ? --m,n:n,m++));

The answer of l is 3

Aucun commentaire:

Enregistrer un commentaire