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
Write a code to generate divisors of an integer?
A c program to display count values from 0 to 100 and flash each digit for a secong.reset the counter after it reaches 100.use for loop,. pls guys hepl me.. :(
In which header file is the null macro defined?
What is the difference between new and malloc functions?
When should the const modifier be used?
Can a program have two main functions?
Explain what are the advantages and disadvantages of a heap?
Explain spaghetti programming?
please explain every phase in the "SDLC" in the dotnet.
Are there any problems with performing mathematical operations on different variable types?
What is null pointer in c?
what is the basis for selection of arrays or pointers as data structure in a program
What is the difference between far and near in c?
what are bit fields? What is the use of bit fields in a structure declaration?
What do you mean by invalid pointer arithmetic?