what is the different between if-else and switch statment
(other than syntax)

Answer Posted / sujoy dutta

we can use all varriables within if else.but we can't use
all verriables within switch case.example :-float and
String we can't use within switch case.

Is This Answer Correct ?    17 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is uint8 in c?

634


Explain high-order bytes.

670


write a program to generate address labels using structures?

3998


How to get string length of given string in c?

599


Why c is called a middle level language?

631






What are pragmas and what are they good for?

567


Difference between MAC vs. IP Addressing

632


cavium networks written test pattern ..

3584


What is the right type to use for boolean values in c?

576


What are the two types of structure?

567


Why c is called object oriented language?

576


Explain indirection?

637


4. main() { int c=- -2; printf("c=%d",c); }

1362


if the area was hit by a virus and so the decrease in the population because of death was x/3 and the migration from other places increased a population by 2x then annually it had so many ppl. find our the population in the starting.

4486


main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }

627