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

Answer Posted / subbu

Basically while coding developers prefer Switch rather than
If-Else.
But inturn switch gets transferred to IF-ELSe format during
compilation.

Is This Answer Correct ?    31 Yes 87 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the acronym for ansi?

632


What is the scope of static variable in c?

537


Explain what are bus errors, memory faults, and core dumps?

793


What is the total generic pointer type?

729


What are the disadvantages of a shell structure?

696






process by which one bit patten in to another by bit wise operation is? (a) masking, (b) pruning, (c) biting, (d) chopping,

1893


how to make a scientific calculater ?

1566


What is the difference between memcpy and memmove?

606


What is hash table in c?

575


What is the best way to comment out a section of code that contains comments?

785


What do header files do?

604


Do pointers take up memory?

660


Explain the difference between #include "..." And #include <...> In c?

634


What is the difference between the expression “++a” and “a++”?

651


Write a code to remove duplicates in a string.

630