C++ Programming |
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 |
You are subscribed to email updates from C++ Programming To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google Inc., 20 West Kinzie, Chicago IL USA 60610 |
Post a Comment