what is the different between if-else and switch statment
(other than syntax)
Answer Posted / vikky
expressions cannot be used as arguments in switsh, but in
if else any kind of exp can be used...
in the case of checkin a single variable for several values
SWITCH is the BEST.
in all other cases if else holds gud.
| Is This Answer Correct ? | 36 Yes | 20 No |
Post New Answer View All Answers
Why double pointer is used in c?
How was c created?
What is the heap?
please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code
What tq means in chat?
How would you use the functions fseek(), freed(), fwrite() and ftell()?
WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?
WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.
i want to know the procedure of qualcomm for getting a job through offcampus
What is && in c programming?
What is a structure and why it is used?
int i[2], j; int *pi;i[0] = 1; i[1] = 5; pi = i; j = *pi + 1 + *(pi + 1)Value of j after execution of the above statements will be a) 7 b) 6 c) 4 d) pointer
Can you please explain the difference between malloc() and calloc() function?
When we use void main and int main?
What are the types of pointers in c?