c - Why does my text not print? -
why printf() not called in case? can use && in case or what?
{ int zz1,zz2; zz1 = 8; zz2= zz1 / 2; if ( (zz1==! 0 ) && (zz2 ==! 1 ) ){ printf("!!!!!!!!!!"); } }
i think write (zz1 != 0 ) && (zz2 != 1 ).
actually (zz1 == !0 ) && (zz2 == !1 ) valid syntax in case produces unwanted result because writing:
zz1 equals (not)0 , zz2 equals (not)1- that
zz1 equals 1 , zz2 equals 0 - that false ,
printfnot called
Comments
Post a Comment