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
Are global variables static in c?
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)
What are header files and explain what are its uses in c programming?
What is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?
What are the 4 types of unions?
Why do we need volatile in c?
What is the best style for code layout in c?
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
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.
What does %d do?
Does c have an equivalent to pascals with statement?
What is structure padding in c?
What is the ANSI C Standard?
How does sizeof know array size?
application attempts to perform an operation?