if(Conditional statement)Whether the result is TRUE or FALSE the Conditional statement has executed。
C语言中没有布尔类型。任何一个整型的变量都可以充当布尔变量,用0表示False,其它数(默认为1)表示True。
本文介绍了C语言中如何使用if语句进行条件判断,并解释了由于C语言中没有布尔类型,如何利用整型变量来表示真假状态。
if(Conditional statement)Whether the result is TRUE or FALSE the Conditional statement has executed。
C语言中没有布尔类型。任何一个整型的变量都可以充当布尔变量,用0表示False,其它数(默认为1)表示True。
3288

被折叠的 条评论
为什么被折叠?