mardi 19 mai 2015

If statement without condition

I would like to ask what is the behaviour of the C language on the following:

int n = 0;
.
.
// n in this block may change value to something else but a (positive) number
.
.
if(n)
{
  // do something
}
.
.

So what the if(n) means when the n is an integer?

Aucun commentaire:

Enregistrer un commentaire