what is the different between if-else and switch statment
(other than syntax)
Answer Posted / nilesh dinakr
In IF STATEMENT, we can build the logical conditin i.e.
usinf realtional operator but in SWITCH, we can use the
expression which yield int or char value but not float.
char value will be auoto typecast to int. shortly , switch
works only one int
| Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
what is the c source code for the below output? 5555555555 4444 4444 333 333 22 22 1 1 22 22 333 333 4444 4444 5555555555
What is c language & why it is used?
Why is it that not all header files are declared in every C program?
How do you override a defined macro?
I have a varargs function which accepts a float parameter?
What is external variable in c?
What does p mean in physics?
Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......
a sequence of bytes with one to one corrspondence to those in the external device a) sequential addressing b) address c) byte code d) none
Explain what are preprocessor directives?
Why enum is used in c?
Explain the bubble sort algorithm.
How main function is called in c?
What is the use of parallelize in spark?
What is #include stdio h and #include conio h?