Home
|
NovaMind Home
|
Friends
|
0 New Messages
|
Profile
|
? Help
Login
|
Sign Up
Search:
Mind Maps
People
Subscribe
C Statements
C Programming Language
>
Map Branches
Types
Simple Statements
End with a semicolon ;
break statement
used to interrupt a statement flow
can be used to exit any loop before termination condition is met
Compound Statements
Use semicolon rule of compound statement
Example: if statement
Construction
Curly Braces {}
Group multiple statements into a block
Each block is evaluated together
No semicolon ; at end of a block
parentheses ()
for expressions and operator precedence
required for certain compound statements
Order and Evaluation
Nested Statement Evaluation
Nested "if statement"
if ( myVar != 0 ) if ( ( 1 / myVar ) < 1 ) printf( "myVar is in range" );
Short Circuit Evaluation
if ( (myVar != 0) && ((1 / myVar) < 1) ) printf( "myVar is in range" );
Comments
►
0 map comments of 0 total for this map
You must be logged in to post comments