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 const and volatile in c?
the statement while(i) puts the entire logic in loop. this loop is called a) indefinite loop b) definite loop c) loop syntax wrong d) none of the above
program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)
What is the difference between a free-standing and a hosted environment?
What are different types of operators?
Write a C++ program to generate 10 integer numbers between - 1000 and 1000, then store the summation of the odd positive numbers in variable call it sum_pos, then find the maximum digit in this variable regardless of its digits length.
How would you rename a function in C?
What is extern keyword in c?
In a switch statement, explain what will happen if a break statement is omitted?
Explain how can I make sure that my program is the only one accessing a file?
Why should I use standard library functions instead of writing my own?
Write a program in "C" to calculate the root of a quadratic equation ax^2+bx+c=0, where the value of a,b & c are known.
Explain how do you declare an array that will hold more than 64kb of data?
If you know then define #pragma?
How can I read/write structures from/to data files?