CSE 230 Study Guide - Final Guide: Local Variable, External Variable, Scanf Format String

40 views7 pages

Document Summary

1 int b = 6; int a = 5; printf( %d %d , a, b); return 0; Empty statement: a single semicolon is an empty statement, compound statements do not end with a semicolon, example: if (x == 0) { }; /* _____________________ */ else y = 2; int a = 5, b = 6; printf( %d %d , a, b); printf( %d %d , a, b); y = 5; x = 2; int b = 7; 2 if (a > 7) { if (a < 14) Other examples if (a > 7 && a < 14) b=1; else b=0; if (a > 7 || a < 14) b=1; else b=0; if (7 < a < 14) if (a > 7) Conditional operator and break: if (y < z) else x = z; or x = (y < z) ? y : z , break; Execution immediately exits current block. switch statement case a": case b": case c": default:

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers

Related Documents

Related Questions