answersLogoWhite

0

Use of nested switch case

Updated: 8/10/2023
User Avatar

Wiki User

12y ago

Best Answer

KVM switches are available via hardware and now today over IP software is also available...many switch, keyboard and video combinations are possible.

User Avatar

Wiki User

17y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

12y ago

Possible.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Use of nested switch case
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Can you have nested switch case statement in C?

If that's what you really want to do, the compiler will allow it. It might indicate an inefficient design, though.


Why you use inner loop and outer loop?

Sometimes you have to use nested loops, in this case one of them is the outer, the other is the inner.


When should a switch statement be used?

switch is a loop which is used for checking various conditions and print corresponding matter.switch(a)//where a is that whose condition you have to check.#includemain(){char a;printf("enter a char.");scanf("%c",&a);switch(a){case 'a':printf("vowel");break;case 'e':printf("vowel");break;case 'i':printf("vowel");break;case 'o':printf("vowel");break;case 'u':printf("vowel");break;default:printf("consonent");}}


What is the difference between switch case and if else?

If else can have values based on constraints, where as switch case can have values based on user choice.In if else, first condition is verified, then it comes to else whereas in the switch case first it cheaks the case and then it switches to that particular case.


What is an if or nested if statement?

Convenience here is in terms of the human reader of the program; a good optimizing compiler may treat both the switch and the nested if-else as pretty much the same thing. For me, using a switch is easier because it is easier to add additional cases to the switch. It can be (in my opinion) harder and more dangerous logically to fit additional test cases in a nested if. Finally, in some compilers the switch statement may be implemented in the hardware, so you end up with better performance.

Related questions

What is difference between select Case statement and nested loop in c programming in UNIX?

UNIX has no bearing on the C language; it is cross-platform. There is no select/case in C, you probably meant switch/case. However, a switch/case is a conditional jump while a nested loop is a loop within a loop. Besides the C language they have nothing in common with each other.


Can you have nested switch case statement in C?

If that's what you really want to do, the compiler will allow it. It might indicate an inefficient design, though.


Can you have nested switch statement inc language?

yes,we can


Why you use inner loop and outer loop?

Sometimes you have to use nested loops, in this case one of them is the outer, the other is the inner.


When do you use the nested if?

we use "nested if" if we have to test a large number of possibilities and trials i an if statement.


When should a switch statement be used?

switch is a loop which is used for checking various conditions and print corresponding matter.switch(a)//where a is that whose condition you have to check.#includemain(){char a;printf("enter a char.");scanf("%c",&a);switch(a){case 'a':printf("vowel");break;case 'e':printf("vowel");break;case 'i':printf("vowel");break;case 'o':printf("vowel");break;case 'u':printf("vowel");break;default:printf("consonent");}}


What is the difference between switch case and if else?

If else can have values based on constraints, where as switch case can have values based on user choice.In if else, first condition is verified, then it comes to else whereas in the switch case first it cheaks the case and then it switches to that particular case.


Can you use nested printf?

printf ("nested printf returned %d\n", printf ("inner printf\n"));


How is one dimensional and two dimensional arrays read and written?

You go through all the elements of an array with a loop - or, in the case of a 2-dimensional array, with two nested loops. If you have a 10-dimensional array, you would use 10 nested loops. In any case, one variable to keep track of the position for each dimension.


Can you use strings in switch with case?

No. (You could of tested it yourself.)


How do you use nested for loop on the image in matlab?

Please ask clearly what you want to do with the image and explain why a nested for-loop is necessary.


When do You use a nested selection structure?

you need nothing