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
.find the output of the following program? char*myfunc(char*ptr) { ptr +=3; return (ptr); } int main() { char*x,*y; x="HELLO"; y=myfunc(x); printf("y = %s ",y); return 0; }
pierrot's divisor program using c or c++ code
What is %lu in c?
I came across some code that puts a (void) cast before each call to printf. Why?
What is wrong in this statement?
Are c and c++ the same?
What is return type in c?
What is the use of #define preprocessor in c?
Is main is user defined function?
What are header files in c programming?
Why malloc is faster than calloc?
What is nested structure with example?
What is a protocol in c?
What is the function of volatile in c language?
What is #define used for in c?