In the following control structure which is faster?
1.Switch
2.If-else
and which consumes more memory?
Answer Posted / battini.laxman
switch is faster because when in nested if condition has to
check for each time. where as in switch it diectly check
only labels.
Is This Answer Correct ? | 8 Yes | 1 No |
Post New Answer View All Answers
What is meant by recursion?
How can you read a directory in a C program?
Do you know what are bitwise shift operators in c programming?
What are the uses of a pointer?
Can you apply link and association interchangeably?
Which built-in library function can be used to match a patter from the string?
How do you determine whether to use a stream function or a low-level function?
Define Spanning-Tree Protocol (STP)
How can I implement a delay, or time a users response, with sub-second resolution?
What are formal parameters?
Are c and c++ the same?
Explain about C function prototype?
What is merge sort in c?
Is c language still used?
What is the use of in c?