# Category Archives: Programs Using Functions in C Programming

## C Function Area of Rectangle

Topic: C Function Area of Rectangle Write a C++ function to calculate the area when height and width  are given as arguments. The function will accept 2 double parameters height and width of type double and return a double(area of the rectangle). Hint: area = height x width Definition of C Function Area of Rectangle… Read More »

## Complete Prime Checker Function

“Complete Prime Checker Function” is a C program using functions in C programming language. Prime checker program will use an isPrime() function to check whether the given number is prime or not. isprime() function will take an integer parameter. It will return 1 or zero. isPrime() function will return 1 if the given number is… Read More »

## Odd Checker C Function

“Odd Check C Function” is a C program. It uses a function odd() that will take an integer parameter. It will return 1 if number is odd. This function will return 0 if given number is not odd number. The source code for oddschecker program in C Programming language is as follows: /* Write a… Read More »

## Multiplication Table Function C Programming

“Multiplication Table Function C Programming” is a C program related to the use of Functions in C Programming. The following figure will show the output and source code of Multiplication table function. The source code of C program to print table by using a function is as follows: /* Write a C program to use… Read More »

## Function Cube of Number in C Programming

“Function Cube of Number in C Programming” is a C programming language program. It uses a user defined function that receives a parameter number n. It then computes and returns cube of that number. The following image shows the source code of the programmer defined function cube() and output of this C program. The source… Read More »

## Function square of number in C programming

“Function square of number in C programming” is a C language program to use a function to calculate square of given number. The square( ) will return square of the given number. /* Write a C program to use a function square() that receives one number and returns its square */ int square(int a); /*function… Read More »

## C Program using add Function in C Programming

“C Program using add function” is a C language program to learn the use of function in C language. A function called addition( ) is used to calculate addition of two numbers. The main function will send two numbers to the addition function. The addition() function will add them and prints result. The user defined… Read More »