which is faster execution: loops or recursion?
Answers were Sorted based on User's Feedback
Answer / nipa
loop is faster then recursion. because in recursion several
time function call itself, so it take time to pass control
to function and return value, but in loop control not pass
in other function it work in same function.here we consider
that function and loop contain same number of statement.
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / sight
It's not necessary that every time faster loops only because
it's depends upon the problem.....
On this we take decision that it's faster working with loop
or recursion....
| Is This Answer Correct ? | 6 Yes | 4 No |
What are pointers in C?
What are the types of arrays in c?
What are the types of data structures in c?
What is pointer & why it is used?
Explain what are compound statements?
Can true be a variable name in c?
Why we use break in c?
How to print "I Love My India" without using semi colon?
What are the restrictions of a modulus operator?
Combinations of fibanocci prime series
Differentiate Source Codes from Object Codes
What is the best way to comment out a section of code that contains comments?