Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

which is faster execution: loops or recursion?

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to find binary of number?

4439


How can you read a directory in a C program?

1141


What is wrong with this declaration?

1105


What is new line escape sequence?

1337


Difference between Function to pointer and pointer to function

1068


how can I convert a string to a number?

1082


Can you please compare array with pointer?

1081


What is the size of array float a(10)?

1139


Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......

2187


What is omp_num_threads?

1078


What should malloc() do?

1167


What is extern keyword in c?

1129


what is a function method?give example?

2359


Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.

1118


What is oops c?

1236