SlideShare a Scribd company logo
1 of 5
Joseph Daniel P. Soriano
       FM10205




     http://emglobiotraining.com/
     In programming,
             a switch, case, select or inspect stateme
             nt is a type of selection control
             mechanism that exists in
             most imperative
             programminglanguages such
             as Pascal, Ada, C/C++, C#, Java, and so
             on. It is also included in several other
             types of languages. Its purpose is to
             allow the value of a variable or
             expression to control the flow of
             program execution via a multiway
             branch (or "goto", one of several labels).
             The main reasons for using a switch
             include improving clarity, by reducing
             otherwise repetitive coding, and (if
             theheuristics permit) also offering the
             potential for faster execution through
             easiercompiler optimization in many
             cases.


http://emglobiotraining.com/
     A loop is a
                 programming language
                 construction that
                 allows the programmer
                 to instruct the
                 computer to perform a
                 certain instruction, or
                 set of instructions over
                 and over again.
           




http://emglobiotraining.com/
   Prof. Erwin Globio
   http://eglobiotraining.com.




                  http://emglobiotraining.com/
   http://www.slideshare.net/seeeephie




                  http://emglobiotraining.com/

More Related Content

Similar to Switch Case Statements Explained

Fundamentals of programming
Fundamentals of programmingFundamentals of programming
Fundamentals of programmingKaycee Parcon
 
Fundamentals of programming final santos
Fundamentals of programming final santosFundamentals of programming final santos
Fundamentals of programming final santosAbie Santos
 
Fundamentalsofprogrammingfinal 121011003536-phpapp02
Fundamentalsofprogrammingfinal 121011003536-phpapp02Fundamentalsofprogrammingfinal 121011003536-phpapp02
Fundamentalsofprogrammingfinal 121011003536-phpapp02thinesonsing
 
Fundamentals of programming final
Fundamentals of programming finalFundamentals of programming final
Fundamentals of programming finalRicky Recto
 
Debuggers in system software
Debuggers in system softwareDebuggers in system software
Debuggers in system softwaregayathri ravi
 
Margareth lota
Margareth lotaMargareth lota
Margareth lotamaggybells
 
Switch case and looping statement
Switch case and looping statementSwitch case and looping statement
Switch case and looping statement_jenica
 
Mark asoi ppt
Mark asoi pptMark asoi ppt
Mark asoi pptmark-asoi
 
How to debugging
How to debuggingHow to debugging
How to debuggingSiya Lee
 
PowerShell Zero To Hero Workshop!
PowerShell Zero To Hero Workshop!PowerShell Zero To Hero Workshop!
PowerShell Zero To Hero Workshop!Daisy Stevens
 
TotalView ReplayEngine Tech Audit
TotalView ReplayEngine Tech AuditTotalView ReplayEngine Tech Audit
TotalView ReplayEngine Tech AuditTotalviewtech
 
ALPHA Script - Presentation
ALPHA Script - PresentationALPHA Script - Presentation
ALPHA Script - PresentationPROBOTEK
 
Deguzmanpresentationprogramming
DeguzmanpresentationprogrammingDeguzmanpresentationprogramming
Deguzmanpresentationprogrammingdeguzmantrisha
 
ICT-DBA4 -05-0811-Apply-Object-Oriented-Programming-Language-Skills.doc
ICT-DBA4 -05-0811-Apply-Object-Oriented-Programming-Language-Skills.docICT-DBA4 -05-0811-Apply-Object-Oriented-Programming-Language-Skills.doc
ICT-DBA4 -05-0811-Apply-Object-Oriented-Programming-Language-Skills.docAmanGunner
 
Lecture 5 - Structured Programming Language
Lecture 5 - Structured Programming Language Lecture 5 - Structured Programming Language
Lecture 5 - Structured Programming Language Md. Imran Hossain Showrov
 
Looping and switch cases
Looping and switch casesLooping and switch cases
Looping and switch casesMeoRamos
 

Similar to Switch Case Statements Explained (20)

Fundamentals of programming
Fundamentals of programmingFundamentals of programming
Fundamentals of programming
 
Fundamentals of programming final santos
Fundamentals of programming final santosFundamentals of programming final santos
Fundamentals of programming final santos
 
Fundamentalsofprogrammingfinal 121011003536-phpapp02
Fundamentalsofprogrammingfinal 121011003536-phpapp02Fundamentalsofprogrammingfinal 121011003536-phpapp02
Fundamentalsofprogrammingfinal 121011003536-phpapp02
 
Fundamentals of programming final
Fundamentals of programming finalFundamentals of programming final
Fundamentals of programming final
 
Debuggers in system software
Debuggers in system softwareDebuggers in system software
Debuggers in system software
 
Margareth lota
Margareth lotaMargareth lota
Margareth lota
 
Switch case and looping statement
Switch case and looping statementSwitch case and looping statement
Switch case and looping statement
 
Mark asoi ppt
Mark asoi pptMark asoi ppt
Mark asoi ppt
 
Computer Programming
Computer Programming Computer Programming
Computer Programming
 
Computer
ComputerComputer
Computer
 
How to debugging
How to debuggingHow to debugging
How to debugging
 
PowerShell Zero To Hero Workshop!
PowerShell Zero To Hero Workshop!PowerShell Zero To Hero Workshop!
PowerShell Zero To Hero Workshop!
 
Switch case looping
Switch case loopingSwitch case looping
Switch case looping
 
TotalView ReplayEngine Tech Audit
TotalView ReplayEngine Tech AuditTotalView ReplayEngine Tech Audit
TotalView ReplayEngine Tech Audit
 
Training 8051Report
Training 8051ReportTraining 8051Report
Training 8051Report
 
ALPHA Script - Presentation
ALPHA Script - PresentationALPHA Script - Presentation
ALPHA Script - Presentation
 
Deguzmanpresentationprogramming
DeguzmanpresentationprogrammingDeguzmanpresentationprogramming
Deguzmanpresentationprogramming
 
ICT-DBA4 -05-0811-Apply-Object-Oriented-Programming-Language-Skills.doc
ICT-DBA4 -05-0811-Apply-Object-Oriented-Programming-Language-Skills.docICT-DBA4 -05-0811-Apply-Object-Oriented-Programming-Language-Skills.doc
ICT-DBA4 -05-0811-Apply-Object-Oriented-Programming-Language-Skills.doc
 
Lecture 5 - Structured Programming Language
Lecture 5 - Structured Programming Language Lecture 5 - Structured Programming Language
Lecture 5 - Structured Programming Language
 
Looping and switch cases
Looping and switch casesLooping and switch cases
Looping and switch cases
 

Switch Case Statements Explained

  • 1. Joseph Daniel P. Soriano FM10205 http://emglobiotraining.com/
  • 2. In programming, a switch, case, select or inspect stateme nt is a type of selection control mechanism that exists in most imperative programminglanguages such as Pascal, Ada, C/C++, C#, Java, and so on. It is also included in several other types of languages. Its purpose is to allow the value of a variable or expression to control the flow of program execution via a multiway branch (or "goto", one of several labels). The main reasons for using a switch include improving clarity, by reducing otherwise repetitive coding, and (if theheuristics permit) also offering the potential for faster execution through easiercompiler optimization in many cases. http://emglobiotraining.com/
  • 3. A loop is a programming language construction that allows the programmer to instruct the computer to perform a certain instruction, or set of instructions over and over again.  http://emglobiotraining.com/
  • 4. Prof. Erwin Globio  http://eglobiotraining.com. http://emglobiotraining.com/
  • 5. http://www.slideshare.net/seeeephie http://emglobiotraining.com/