dimanche 8 mars 2015

Is there any helper website that will invert logic/conditional statements in C?

I have if statements in C and occasionally I want to see what the opposite looks like. For example:



if(!foo && bar)
{
a = 1;
}
else // foo || !bar
{
b = 1;
}


I want to know when the else part will be used. Now this example is simple so it's foo || !bar right? This is why I want some sort of logic checker or inverter or helper website because I have more complicated examples and I would like to make sure the condition for the else statement is exactly what I think it is.


Thanks


Aucun commentaire:

Enregistrer un commentaire