Home > Software engineering >  If condition lack of && logical operators unexpectedly can also run, please explain principle
If condition lack of && logical operators unexpectedly can also run, please explain principle

Time:09-22

# include "stdafx. H"
#include
Int main (int arg c, char * argv [])
{
Int a=0;
Int b=0;
If (a==0 & amp; &
B==0
(STRCMP (" aa ", "aa")==0))
{
Printf (" 11111 ");
}
return 0;
}

A project of vc6.0, behind the b==0 don't write & amp; & Compiles without error and warning, can also run, this is how to return a responsibility? In 2015 is only a warning, no mistakes
  • Related