What is function ? Why to use function ?

  • We can divide a large program into basic building blocks called functions.
  • Functions contains a set of programming statements that is enclosed within {} paranthesis.
  • A function is a set of code that performs specific task.
  • A collection of number of functions is known as a program.
  • Functions helps to avoid repeat useage of code.
  • Functions can be called from any place in our program any number of times.
  • Functions make code readable and simple.
  • Functions are also called as procedures or subroutines in other programming Languages.

How Functions Works in C Langauage

 

Leave a Reply

Your email address will not be published.

You May Also Like