What is meant by recursion?



What is meant by recursion?..

Answer / Gaurav Aggarwal

In programming, recursion refers to a method where a function calls itself to solve a problem. The base case of the function provides the termination condition and the recursive case breaks down the original problem into smaller subproblems that are solved using the same function.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

write C code to reverse a string such that if i/p is "abc defg hij klmno pqrs tuv wxyz" and the o/p should be "cba gfed jih onmlk srqp vut zyxw"

2 Answers  


How can I write a function that takes a format string and a variable number of arguments?

1 Answers  


implement NAND gate logic in C code without using any bitwise operatior.

4 Answers   Alcatel,


proc() { static i=10; printf("%d",i); } If this proc() is called second time, what is the output?

7 Answers   Hughes,


how to get starting address of a running C program

3 Answers  


User define function contain thier own address or not.

2 Answers  


write a code for large nos multilication (upto 200 digits)

2 Answers   Persistent,


How to establish connection with oracle database software from c language?

1 Answers  


#define DCHAR char* typedef char* TCHAR; if using these following variables will be declared like DCHAR ch1, ch2; TCHAR ch3, ch4; then what will be types of ch1, ch2, ch3 and ch4?

6 Answers   NDS,


about c language

1 Answers  


What is the difference between constant pointer and pointer to a constant. Give examples.

4 Answers   TCS,


program that accepts amount in figures and print that in words

2 Answers   Infosys, Lovely Professional University, Wipro,


Categories