C++ Programming

C++ Programming


The Switch Vs If-Else

Posted: 23 Jun 2013 09:08 AM PDT

The switch and if-else both are selection statement and they both let you select an alternative out of given many alternative by testing an expression. Below I have Listed Some of the Difference in their operations: The switch statement differs from the if statement in that switch can only test for equality whereas if can evaluate a relation or logical expression. The Switch


Post a Comment