Monday, June 11, 2012

Beginning

Assalamu Alaikum. How are you all ?? Hope, you all are well by the grace of Almighty ALLAH. Today we learn something about switch case.

Switch case:

  • same expression
  • equal to operator

Syntax of the switch statement:

  • Switch Case statement is used to make a decision from multiple choices.
  • Default is optional


We can also compare this with if-else statement.


Examples:

01.

02.


Thank You all..:)






0 comments:

Post a Comment