dimanche 25 septembre 2016

How to check two conditions in if statement in c

I have an if statement that I need to check more than one condition in. For example:

if (a == 0 and b != 0 or c != 0)
{
    //do something
}

What is the most efficient way to accomplish this

Aucun commentaire:

Enregistrer un commentaire