C Programs - Function


A function is a collection of statements that performs a specific task.

There are two types of functions:

  1. Standard library function
  2. User-defined function

A function can be called as many times as possible which provides modularity without repetition of code.

List of programs

  1. C Program to find square of a number
  2. C Program to find cube of a number
  3. C Program to find circumference, diameter and area of a circle
  4. C Program to find maximum and minimum number
  5. C Program to find maximum and minimum number in an array
  6. C Program to check if a number is even or odd in a given interval
  7. C Program to check if a number is prime or not
  8. C Program to check if a number is prime or not in a given interval
  9. C Program to check if a number is armstrong or not
  10. C Program to print sum of first natural numbers using recursion
  11. C Program to print all natural number between given interval using recursion
  12. C Program to print all even and odd number in a given interval using recursion
  13. C Program to find sum of numbers in a given interval using recursion
  14. C program to find reverse of a number using recursion
  15. C program to check if a number is palindrome using recursion
  16. C program to find factorial of a number using recursion
  17. C program to get nth Fibonacci term using recursion