which is faster execution: loops or recursion?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of sprintf?

623


Explain what would happen to x in this expression: x += 15; (assuming the value of x is 5)

816


Write a function which takes as parameters one regular expression(only ? and * are the special characters) and a string and returns whether the string matched the regular expression.

654


A global variable when referred to in another file is declared as this a) local variable b) external variable c) constant d) pointers

651


How can a string be converted to a number?

519






What is the package for freshers(Non IIT) in amazon(hyderabad). And what is the same for those who are a contract employee.

3734


What is preprocessor with example?

589


What are the 5 elements of structure?

568


What is #include stdio h?

687


What is the difference between struct and union in C?

575


State two uses of pointers in C?

642


What is typeof in c?

610


What is the difference between constant pointer and constant variable?

749


What is NULL pointer?

677


When should a type cast not be used?

627