| Dictionary, Encyclopedia and Thesaurus - The Free Dictionary 3,911,145,175 visitors served. |
Dictionary/ thesaurus | Medical dictionary | Legal dictionary | Financial dictionary | Acronyms | Idioms | Encyclopedia | Wikipedia encyclopedia | ? |
case statement |
Also found in: Wikipedia | 0.01 sec. |
|
|
case statement In programming, a variation of the if-then-else statement that is used when several ifs are required in a row. The following C example tests the variable KEY1 and performs functions based on the results.
switch (key1) {
case '+': add(); break;
case '-': subtract(); break;
case '*': multiply(); break;
case '/': divide(); break;
}
For a more extensive example of the case statement, see the last example under "C."
Want to thank TFD for its existence? Tell a friend about us, add a link to this page, add the site to iGoogle, or visit the webmaster's page for free fun content. |
|
| Encyclopedia |
| Free Tools: |
For surfers:
Free toolbar & extensions |
Word of the Day |
Help
For webmasters: Free content | Linking | Lookup box | Double-click lookup |
|---|