Although most of the programs can be made using inbuilt functions like printf(), scanf(), the user has the option of declaring his own functions. Such functions are known as user defined functions. The main objective of a user defined function is to save time and effort since, a method can be called as many times as required.