and 關鍵字 && 簡寫符號用作邏輯運算子。如果兩個語句都返回真,則 and 語句將為真。and 語句通常用於 if 語句中。
以下是使用 and 語句對兩個專案進行求解的表格。
以下是用 if 語句的示例
if(first && second){ printf("it is true"); }