answersLogoWhite

0


Switch Expression should be an Integer Expression.
Syntax:

switch(integer expression)
{
case constant 1:
do this;
default:
do this;
}

The expression following the keyword switch is any C expression that will yield an Integer value.

It could be an integer constant like 1,2 or 3,or an expression that evaluates to an integer.

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

How do you choose multiple if statement and switch statement?

If you must evaluate two or more expressions separately, use multiple if statements. If you only need to test all the possible evaluations of a single expression, use a switch.


How many different ways can you use the digits 3 and 5 to write expressions in exponential form and what are the expressions?

how many different ways can you use the digits 3 and to write expressions in exponential form/ what are the expressions


Which expressions do walther and Ruth use to refer to their apartment?

They use as expressions the words small, timeworn and clean


How do you use conditional in a sentence?

An 'if ' or 'switch'. Some languages also support a ternary operator that can be used to evaluate one of two expressions of the same type.


How are numerical expressions and algebraic expressions similar?

They both use PEMDAS or Order of Operation


Why do you use letters in algebraic expressions?

the reason you use letters in algebraic expressions is because you don't know the number so a letter replaces it.


How to make decision making statements in c plus plus?

Decision making statements make use of conditional expressions. In C++ there are three possibilities: if/else, switch/case and the ternary operator (?:).


What jobs use literal expressions?

Shoemaker


How will you simplify algebraic expressions?

use a calculator


How do you simplify an expressions?

you use a mathematical formula ...


How can you use models to compare expressions?

what the heck


How can you use the OR condition in PHP validation in regular expressions?

You use instead of OR