/* 范例:5-4 */
#include <stdio.h>
void main(void)
{
int a=3,b=5,c=2;
if(b<a && a>c) /* b<a=false,因此没必要了解a>c为true或false */
printf("b<a && a>c=True\n");
if(c<b || b>a) /* c<b=ture,因此没必要了解b>a为true或false */
printf("c<b || b>a=True\n");
getchar();
}
程序执行结果:
c<b || b>a=True