answersLogoWhite

0

No, it has to be a single expression (integer type).

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

Can final keyword be applied to static variables and methods?

In the case of variables, the two can be combined. This occurs, for example, with the fields Math.PI and Math.E. I am not sure about methods, but I see no reason why you shouldn't be able to combine the two in this case.


I am using Borland C compiler and making a program using switch cases while loading program I'm getting error that case bypasses initialization of a local variable case 4?

You cannot declare variables inside a case label. Declare them outside of the switch.


Which logic gate is similar to two way switch?

A two-way switch is similar to an XOR gate in logic circuits. XOR gates output a high signal when the two input signals are different, similar to how a two-way switch changes state depending on its position.


What does Y with parentheses around it mean?

In the case of (x)(y) it is just multiplication of two variables.


Can you use variables in case clauses in the switch statement?

YES - If the variable i a constant (final variable that is already initialized) NO - If the variable is not constant and is assigned at run time.


Which statement should you use if you have multiple conditions to check for the same variable?

SWITCHswitch( yourVar ){case 'A':foo++;case 'a':bar++;default :baz++;}The switch statement will only work with integer or character variables, however. If your variable is not of that simple type, then the switch statement will not work. In that case you need to use the standard if-then-else-if sequencing.


Is c sharp a case sensitive language?

Yes. The upper/lower case chars are regarded as being different in C. For example, you can have two variables, one called 'x' and the other called 'X' and the compiler will recognize them as separate variables.


Can a system of linear equations in two variables have exactly two solutions?

Yes. The easiest case to see where this is true is in the case that the equations are all of degree = 1, which will yield one solution per variable.


What are the two types of variables?

The two types of variables are the CONSTANT and CONTROL.


What is an equation made with two variables called?

An equation with two variables . . . seriously!An equation with one variable can be can be solved, but when there are two variables, you need two equations. This is called a system of two equations in two variables.Three equations in three variables, etc.


What does a line graph related to?

It is related to the two variables that are plotted in the line graph.It is related to the two variables that are plotted in the line graph.It is related to the two variables that are plotted in the line graph.It is related to the two variables that are plotted in the line graph.


What is lower case r in stats?

It is usually the regression coefficient: a measure of the degree to which two variables change in agreement with one another.