CS195, Class 8: More C! Overview * Lab * Leave Admin * Reading for Monday: Online: "About Binary Numbers" * Homework due. * You can do MathLAN work during CS153 (10:00-10:50) and CSC151 (right before this class) ---------------------------------------- REFLECTION 1. What should we cast? ((char) ch == ' ') vs. (ch == (int) ' ') 2. In what order? (ch == (int) ' ') vs. (((int) ' ') == ch) (((int) ' ') = ch) vs if (ch = (int) ' ') 3. if (('a' <= ch) && (ch <= 'z')) nchar[ch-(int)'a']; else if (('A' <= ch) && (ch <= 'Z')) nchar[ch-(int)'A']; 4. For what values of x does the following print Yay? #include main() { int x; printf("Enter an integer: "); scanf("%d",&x); if (0 < x < 9) printf("Yay!\n"); else printf("Boo!\n"); } /* main() */