and 关键字 && 简写符号用作逻辑运算符。如果两个语句都返回真,则 and 语句将为真。and 语句通常用于 if 语句中。
以下是使用 and 语句对两个项目进行求解的表格。
以下是用 if 语句的示例
if(first && second){ printf("it is true"); }