/* Program: short.c A program to demonstrate short circuit evaluation. */ #include #include "genlib.h" #include "simpio.h" main() { bool flag ; int a, n ; a = 3 ; n = 2 ; flag = (a < 5) || (++n < 5) ; printf("The value of n is: %d\n", n) ; flag = (a > 5) || (++n < 5) ; printf("The value of n is: %d\n", n) ; } -------------------------------------------- The value of n is: 2 The value of n is: 3