a) Write a recursive function to find the factorial of a number and c…
Previous year question for Computer Programming.
Question
a) Write a recursive function to find the factorial of a number and compare the recursive method to find the factorial of a number with that of an iterative method. (10)
b) Explain array of structure and structure with in structure with example. (10)
- Year: 2018
- Subject: Computer Programming
Related pages
More PYQs on Recursion
- (a) What is structure ? Write a program to illustrate the concept of structure and how member variables are accessed. (10) (b) Write a program to print Fibonac…
- (a) Write a program that computes the sum of following series: $x - x^3/3! + x^5/5! - x^7/7! + .........$ to n terms. The value of 'x' and 'n' is to be given b…