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

An integer that indentifies the position of a data item in a sequence of data items a) value b) number c) index d) all of the above

652


Why dont c comments nest?

625


Write a C++ program to generate 10 integer numbers between - 1000 and 1000, then store the summation of the odd positive numbers in variable call it sum_pos, then find the maximum digit in this variable regardless of its digits length.

1574


What is difference between union and structure in c?

584


What is else if ladder?

616






Explain what are the different data types in c?

765


int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(“-“); Return 0;

1130


In a header file whether functions are declared or defined?

633


How do you declare a variable that will hold string values?

673


What is difference between class and structure?

577


What are the different types of linkage exist in c?

617


Tell me can the size of an array be declared at runtime?

603


Can you add pointers together? Why would you?

651


What does the format %10.2 mean when included in a printf statement?

1095


Which is best linux os?

572