Statement-Level Control Structures full report
#1

Statement-Level Control Structures

[attachment=17254]
Control Statements: Evolution
•FORTRAN I control statements were based
directly on IBM 704 hardware
•Much research and argument in the 1960s
about the issue
–One important result: It was proven that all
algorithms represented by flowcharts can be
coded with only two-way selection and logically
controlled iterations


The Control Expression

•If the then reserved word is not used
–control expressions are specified in parentheses
•If the then reserved word is used
–Less need for parentheses
•In C89, arithmetic expressions were used
as control expressions
•In Ada, Java, Ruby, and C#, only Boolean
expressions can be used


Multiple-Way Selection Statements
• Allow the selection of one of any number
of statements or statement groups
• Design Issues:
1. What is the form and type of the control expression?
2. How are the selectable segments specified?
3. Is execution flow through the structure restricted
to include just a single selectable segment?
4. How are the case values specified?
5. What is done about unrepresented expression
values?

Design Choices for C’s switch

1. Control expression and constant expressions
are some integer type
2. Selectable segments can be statement
sequences, blocks, or compound statements
3. Any number of segments can be executed in
one execution of the construct (there is no
implicit branch at the end of selectable
segments)
4. default clause is for unrepresented values (if
there is no default, the whole statement does
nothing)
Reply

Important Note..!

If you are not satisfied with above reply ,..Please

ASK HERE

So that we will collect data for you and will made reply to the request....OR try below "QUICK REPLY" box to add a reply to this page
Popular Searches: vbl in icicibank statement, admission of guilt statement example, bsnl income statement, csharp case statement, statement of work sample it, sample of scope statement, level control,

[-]
Quick Reply
Message
Type your reply to this message here.

Image Verification
Please enter the text contained within the image into the text box below it. This process is used to prevent automated spam bots.
Image Verification
(case insensitive)

Possibly Related Threads...
Thread Author Replies Views Last Post
  ATM WITH AN EYE FULL REPORT seminar details 1 5,800 09-07-2016, 12:36 PM
Last Post: seminar report asees
  Authentication Schemes for Session Passwords using Color and Images full report seminar details 1 2,852 29-07-2015, 02:27 PM
Last Post: Guest
  AUTOMATIC PHASE CHANGER full report seminar paper 3 3,553 27-03-2015, 10:06 AM
Last Post: seminar report asees
  Wireless LAN Security FULL REPORT seminar details 3 5,141 06-11-2014, 09:23 PM
Last Post: seminar report asees
  BRAIN FINGERPRINTING full report project uploader 2 10,798 24-10-2014, 11:49 PM
Last Post: jaseela123d
  TERRORISM full report project uploader 2 2,298 08-05-2013, 10:17 AM
Last Post: computer topic
  GSM Based Irrigation Control System seminar paper 1 2,082 24-03-2013, 08:09 PM
Last Post: Guest
  WATERPROOFING BELOW GROUND LEVEL SEMINAR REPORT seminar addict 1 2,140 12-02-2013, 01:42 PM
Last Post: Guest
  MEMRISTOR FULL REPORT seminar details 1 3,458 25-01-2013, 12:02 PM
Last Post: seminar details
  Windows 8 FULL REPORT seminar paper 3 4,497 24-01-2013, 12:34 PM
Last Post: seminar details

Forum Jump: