what is the different between if-else and switch statment
(other than syntax)
Answer Posted / girish patidar
switch can't check all cases but goto directly
on the perticular case but if checkes all case and verify
condition then execute.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What the different types of arrays in c?
Which of the following operators is incorrect and why? ( >=, <=, <>, ==)
What are the output(s) for the following ? #include char *f() {char *s=malloc(8); strcpy(s,"goodbye")} main() { char *f(); printf("%c",*f()='A'); }
how to find binary of number?
Explain output of printf("Hello World"-'A'+'B'); ?
What is static memory allocation?
any restrictions have on the number of 'return' statements that may be present in a function. a) no restriction b) only 2 return statements c) only 1 return statements d) none of the above
How does free() know explain how much memory to release?
which type of aspect you want from the student.
Explain the difference between the local variable and global variable in c?
How many keywords are there in c?
Why flag is used in c?
Is it fine to write void main () or main () in c?
How will you divide two numbers in a MACRO?
What is hashing in c language?