Skip to main content

Recent Posts

Web Technology

Some Important Program using function.

A group of statements that perform a specific task and is given a particular name is known as function . A function may or may not return a value.

Advantages of using Function:-

. Program size is reduced.
. Support modular programming(i.e it divides the task).
. easy to debugging 
. easy for programming

Syntax:-

return-type function-name(datatype var1 , datatype var2, .......);


Below are the some important c program using function:-


C Program to find area of circle using function.

C Program to calculate Simple Interest by using function with return type.

> C program to calculate factorial of given number using function.  

> C program to calculate the sum of 'n' natural number using function.










Comments