C Functions Practice Problems
Functions are the basic building block of C programs. They enhance the modularity and code reusability by separating the logic of a particular task from the main code and using it whenever required.
This article lists a variety of problems based on function concepts such as function definition, return type and parameters, recursion, etc. The list starts with easy problems which gets more difficult as we go down the list.
- Print Hello using Function
- Function to Print Sum
- Function to Return Sum
- Factorial (Using Function)
- Prime Factorization
- Table Difference
- Decimal to Binary
- Binary to Decimal
- Digital Root
- Sum of Digits of a Number
- Fibonacci Using Recursion
Prerequisite
The above problems mainly focus on the C functions, but they also require the knowledge of other basic concepts that are listed below:
If you have some doubts about these concepts, you can revise them from GeeksforGeeks' C Tutorial.