1. 程式人生 > >Nicolas Lee's Studio

Nicolas Lee's Studio

看到別人的程式碼。突然想到這個問題。

if ( x )         return -1; // <==> 
if ( x != 0 )	 return -1; // <==> 
if ( x == TRUE)	 return -1; // <==> 

if (!x )         return -1; // <==> 
if ( x == 0 )	 return -1; // <==> 
if ( x == FALSE )return -1; // <==>