what is the different between if-else and switch statment
(other than syntax)
Answer Posted / thiyagu.p
Simply saying, IF-ELSE can have values based on constraints
where SWITCH can have values based on user choice.
| Is This Answer Correct ? | 187 Yes | 42 No |
Post New Answer View All Answers
What is a #include preprocessor?
Is null valid for pointers to functions?
Write a C program on Centralized OLTP, Decentralized OLTP using locking mechanism, Semaphore using locking mechanism, Shared memory, message queues, channel of communication, sockets and a simple program on Saving bank application program using OLTP in IPC?
What is the difference between near, far and huge pointers?
Explain what is output redirection?
Explain what is wrong in this statement?
How are variables declared in c?
What is pragma c?
What does int main () mean?
any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()
What are the different data types in C?
What is the difference between abs() and fabs() functions?
What does *p++ do? What does it point to?
is it possible to create your own header files?
Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.