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

Are global variables static in c?

1116


Write a program that takes a 5 digit number and calculates 2 power that number and prints it(should not use big integers and exponential functions)

6750


What are header files and explain what are its uses in c programming?

1074


What is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?

1182


What are the 4 types of unions?

998


Why do we need volatile in c?

1125


What is the best style for code layout in c?

1061


A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none

1158


write a C program: To recognize date of any format even formats like "feb-02-2003","02-february-2003",mm/dd/yy, dd/mm/yy and display it as mm/dd/yy.

3777


What does %d do?

1215


Does c have an equivalent to pascals with statement?

962


What is structure padding in c?

1071


What is the ANSI C Standard?

1222


How does sizeof know array size?

1085


application attempts to perform an operation?

1924