what is the different between if-else and switch statment
(other than syntax)
Answer Posted / lingaraj patra
Th switch structure is a multiple-selection structure that
allows the handling of even more complicated decision
statements other than a two-way if-else structure
| Is This Answer Correct ? | 5 Yes | 3 No |
Post New Answer View All Answers
Explain how can type-insensitive macros be created?
What does 4d mean in c?
Why void main is used in c?
#define PRINT(int) printf("int = %d ",int) main() {< BR> intx,y,z; x=03;y=02;z=01; PRINT(x^x); z<<=3;PRINT(x); y>>=3;PRINT(y); }
Explain what is wrong with this statement? Myname = ?robin?;
Which is more efficient, a switch statement or an if else chain?
Function which gives a pointer to a binary trees const an integer value at each code, return function of all the nodes in binary tree.?
Why is c called a mid-level programming language?
1.int a=10; 2.int b=20; 3. //write here 4.b=30; Write code at line 3 so that when the value of b is changed variable a should automatically change with same value as b. 5.
in any language the sound structure of that language depends on its a) character set, input/output function, its control structures b) character set, library functions, input/output functions its control structures c) character set, library functions, control sturctures d) character set, operators, its control structures
What is the difference between int main and void main?
What math functions are available for integers? For floating point?
Explain what is the purpose of "extern" keyword in a function declaration?
Why structure is used in c?
Can 'this' pointer by used in the constructor?