what is the different between if-else and switch statment
(other than syntax)
Answer Posted / sivanandareddy y
Switch Case is used when you want to check whether a
certain variable is equal to a set of particular values and
theres a different task to do for each value.If-then-else
is can be used to check for...
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Can a pointer be volatile in c?
How many types of functions are there in c?
FILE *fp1,*fp2; fp1=fopen("one","w") fp2=fopen("one","w") fputc('A',fp1) fputc('B',fp2) fclose(fp1) fclose(fp2)} a.error b. c. d.
Write a program in c to replace any vowel in a string with z?
how do you execute a c program in unix.
What is difference between far and near pointers?
What is an lvalue?
What are the 3 types of structures?
Explain how do you list files in a directory?
What is maximum size of array in c?
What is difference between constant pointer and constant variable?
what is the function of pragma directive in c?
Linked list is a Linear or non linear explain if linear how it working as a non linear data structures
What are the three constants used in c?
which is conditional construct a) if statement b) switch statement c) while/for d) goto