Making decisions in 'C'

So far we have seen that in C programs the instructions are executed in the same order in which they appear in the program. Each instruction is executed once and once only. Programs do not include any logical control structures. Most programs, however, require that a group of instructions be executed repeatedly, until some logical condition has been satisfied. This is known as looping. Most of the programs require that a logical test be carried out at some particular point within the program. An action will then be carried out whose exact nature depends upon the outcome of the logical test. This is known as conditional execution.

Making decisions in 'C' - OBJECTIVES

After going through this lesson you would be able to

  • define 'while' statement, for statement and nested loops
  • explain switch statement and goto statement
  • define comma operator

Making decisions in 'C' - Index

  • WHILE STATEMENT
  • FOR STATEMENT
  • NESTED LOOPS
  • IF…ELSE STATEMENT
  • SWITCH STATEMENT
  • THE BREAK STATEMENT
  • THE COMMA OPERATOR
  • THE GOTO STATEMENT
  • IMPORTANT QUESTIONS

Download complete study material of MAKING DECISIONS IN “C”

Please comment on Making decisions in 'C'

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *