Bsc CSIT Semester 1 – C Programming – Unit 7: Functions (5 Hrs.)
Comprehensive questions and detailed answers for Unit 7: Functions (5 Hrs.). Perfect for exam preparation and concept clarity.
Differentiate between library function and user defined function. Write a program to swap two values using call by refrence concept.
Demonstrate the use of recursive function with a suitable example.
Write a program to calculate the factorial of a given number using recursion.
Write a program to compute the sum of first 10 even numbers using function.
Write a program to find the sum of digits of a given integer using recursion.
Write a program using your own function to find sum of two numbers
Write a program to find product of two integers using your own function.
What is function? Discuss the benefits of using function.
Sample Questions
Demonstrate the use of recursive function with a suitable example.
Write a program to calculate the factorial of a given number using recursion.
Write a program to compute the sum of first 10 even numbers using function.
Write a program to find the sum of digits of a given integer using recursion.
And more questions available on this page.