/* * evaltest2 - examine how c evaluates */ #include <stdio.h> int main(void) { int xx=6; int yy=6; int bb=8; printf("Value of xx is %d and yy is %d\n", xx, yy); printf("0 IS FALSE: 1 IS TRUE\n"); printf("xx<yy (%d < %d) evaluates to %d \n", xx, yy, xx<yy); printf("xx==yy (%d == %d) evalueates to %d \n", xx, yy, xx==yy); printf("xx>yy (%d > %d) evaluates to %d \n", xx, yy, xx>yy); printf("Value of xx is %d and bb is %d \n\n", xx, bb); printf("0 IS FALSE: 1 IS TRUE\n" ); printf("xx<bb (%d<%d) evaluates to %d\n", xx, bb, xx<bb); printf("xx==bb (%d==%d) evalueates to %d\n", xx, bb, xx==bb); printf("xx>bb (%d>%d) evalueates to %d\n", xx, bb, xx>bb); return 0; }