what is the different between if-else and switch statment
(other than syntax)
Answer Posted / sumeet
IF ELSE- First the condition is verified, then it comes to the else part.
SWITCH CASE- First it checks the cases and then it switches to that particular case.
IF ELSE- It implements like binary search.
SWITCH CASE-
It implements binary search.
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
Explain what are its uses in c programming?
What are pointers? What are stacks and queues?
Explain how many levels deep can include files be nested?
What are 'near' and 'far' pointers?
Why doesnt this code work?
What is the 'named constructor idiom'?
what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values
about c language
void main(int n) { if(n==0) return; main(--n); printf("%d ",n); getch(); } how it work and what will be its output...............it any one know ans plz reply
What is dynamic memory allocation?
What is union and structure?
Why are algorithms important in c program?
Why use int main instead of void main?
How do I convert a string to all upper or lower case?
What is the c language function prototype?