dimanche 17 mai 2020

Any reason why to use !! in c++? [duplicate]

Recently, I came across following code snippet, I couldn't know the reason. Any one has any idea, why negate two times (and not just return the value of doAction())? return !!doAction();

Aucun commentaire:

Enregistrer un commentaire