Computer Science, asked by ramani1005, 4 months ago

Name the case constants allowed in swich case? d) Identify the error in the following snippet and correct it String res=if(mark>40 && mark<=100)?pass:fail;

[2]​

Answers

Answered by nisha02345
3

Answer:

switch (variable or an integer expression) { case constant: //C Statements ; case ... Let's take a simple example to understand the working of a switch case ... For example, the following program is incorrect:

Answered by Anonymous
0

Answer:

switch (variable or an integer expression) { case constant: //C Statements ; case . Let's take a simple example to ... understand the working of a switch case . For example, the following program is incorrect:

Similar questions