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
Explain zero based addressing.
Distinguish between actual and formal arguments.
How do you override a defined macro?
What is strcmp in c?
What is the best way to comment out a section of code that contains comments?
will u please send me the placement papers to my mail???????????????????
stripos — Find position of first occurrence of a case- insensitive string int stripos ( char* haystack, char* needle, int offset ) Returns the numeric position of the first occurrence of needle in the haystack string. Note that the needle may be a string of one or more characters. If needle is not found, stripos() will return -1. The function should not make use of any C library function calls.
Can a local variable be volatile in c?
What is a dynamic array in c?
Explain what is the advantage of a random access file?
Why is c faster?
How are strings stored in c?
write a c program for swapping two strings using pointer
What is string in c language?
what is stack , heap ,code segment,and data segment