POP Using C Module 3 and 4_New
POP Using C Module 3 and 4_New
1 Write a C program that employs Library Functions and User-Defined Functions. Describe the
advantages of User-Defined Functions over library functions.
2 Write a C program that employs User-Defined Functions and explain the following in detail:
i) Function Prototype ii) Function Call iii) Function Definition
5 Define static variables and write an appropriate C program to explain the scope of static variables.
6 Define global variables and write an appropriate C program to explain the scope of global variables.
8 Explain the concept of recursion. Write a C program to find the factorial of a number using
recursion.
9 Explain the concept of recursion. Write a C program to generate the Fibonacci series using
recursion.
12 Write a C program and explain the passing of individual 1-D array elements to a function.
13 Write a C program and explain the effect of passing the whole 1-D array to a function.
14 Explain the various ways in which a 2D array can be initialized. Write a C program to add the
elements of two 2-D arrays.
15 Explain 3 ways in which a matrix can be initialized. Write a C program to subtract two matrices.
5 Determine if two strings are identical or not by writing a C program using the strcmp function.