L06while - Branching Constructs Review q q q q q q q q what...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
Branching Constructs Review what are branching constructs? what type of branching constructs have we studied? what is nested if? what is multiway if? How does multiway if relate to nested if? what is a switch statement? is it better than multiway if? what does break inside switch do? what is conditional assignment? what construct can be used instead? what are named constants? why are they needed? what is a block? what is special about declaring a variable inside a block? what is a scope of a variable?
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Iterative Constructs while, for, do-while
Background image of page 2
Iterative Constructs provide ability to execute the same code multiple times three constructs while statement do-while statement for statement
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
The While-Statement syntax while ( expression ) action semantics if expression is true then execute action repeat this process until expression evaluates to false action is either a single statement or a block expression action true false
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/22/2010 for the course CS 23021 taught by Professor Staff during the Spring '08 term at Kent State.

Page1 / 8

L06while - Branching Constructs Review q q q q q q q q what...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online