dimanche 21 février 2021

Why does it not provide '-1' when the condition is false? [closed]

Why does it provide 0 as output(when the condition is false)?

cout << (ans > 0) ? ans : -1; 

Aucun commentaire:

Enregistrer un commentaire