what is the different between if-else and switch statment
(other than syntax)
Answer Posted / vikky
expressions cannot be used as arguments in switsh, but in
if else any kind of exp can be used...
in the case of checkin a single variable for several values
SWITCH is the BEST.
in all other cases if else holds gud.
Is This Answer Correct ? | 36 Yes | 20 No |
Post New Answer View All Answers
How can I dynamically allocate arrays?
the process of defining something in terms of itself is called (or) in C it is possible for the functions to call themselves. A function called a) nested function b) void function c) recursive function d) indifinite function
Is c is a high level language?
using only #include
Where register variables are stored in c?
What is an auto variable in c?
GIVEN A FLOATING POINT NUMBER HOW IS IT ACTUALLY STORED IN MEMORY ? CAN ANYONE EXPLAIN?? THE 32 BIT REPRESENTATION OF A FLOATING POINT NUMBER ALLOTS: 1 BIT-SIGN 8 BITS-EXPONENT 23 BITS-MANTISSA
Explain how do you list a file’s date and time?
What is the use of in c?
write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?
How can this be legal c?
What is a structure member in c?
What is the difference between Printf(..) and sprint(...) ?
Why & is used in c?
formula to convert 2500mmh2o into m3/hr