imp unit 4 & 5
imp unit 4 & 5
UNIT 5
1. Explain call by value and call by reference with example each.
2. Explain about calling function, called function and actual and formal
arguments with suitable examples.
3. What is recursion? Write a program to find the factorial of a given number
using recursion.
4. Explain the following with respect to functions:
i) Function prototype ii) Function call iii) Returning from function
5. Write a C program to compare two strings without using string handling
functions.
6. How to pass an array to a function in C programming? Explain
7. Write a C program to generate Fibonacci series using recursive functions.
8. Explain the following functions in files:
i) fseek() ii) ftell() iii|) rewind() iv) fopen() v)fclose() vi)foo()
9. Write a C program to copy the content of one file into another file
10. Define file. What are the modes of operations on file?