what is the different between if-else and switch statment
(other than syntax)
Answer Posted / sanjay parmar sirsa
If-else
we depand the condition
if condition true then true block will be excuted
else
false block will be excuted
switch have number of choice we can excute any choice
| Is This Answer Correct ? | 21 Yes | 6 No |
Post New Answer View All Answers
What are the different types of control structures?
Why does the call char scanf work?
What is the function of volatile in c language?
List the different types of c tokens?
What is data structure in c and its types?
What is the use of typedef in c?
What is a macro in c preprocessor?
What is union in c?
#define f(g,h) g##h main O int i=0 int var=100 ; print f ("%d"f(var,10));} wat would be the output??
What is multidimensional arrays
Write a Program to find whether the given number or string is palindrome.
Want to know how to write a C program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.
Can the sizeof operator be used to tell the size of an array passed to a function?
application attempts to perform an operation?
Is there anything like an ifdef for typedefs?