2077 1

BIT102 ยท 2077 ยท 10 marks

Explain the role of function in programming. How function is declared, defined and called in C?Write a grogram to find factorial of 'n' using recursive function.[5+5]

Explain the role of function in programming. How function is declared, defined and called in C?Write a grogram to find factorial of 'n' using recursive function.[5+5]

C ProgrammingChapter 7: Functions and RecursionRecursive functions

--- (a) Role of Functions in Programming A function is a self-contained, named block of code that performs a specific task and can be called (invoked) from anywhere in the program. Role Description ------------------- Modularity Breaks a large, complex program into smaller, manageable sub-program...