answersLogoWhite

0

Advantages of functions:

  1. Program development made easy : Work can be divided among project members thus implementation can be completed in parallel.
  2. Program testing becomes easy : Easy to locate and isolate a faulty function for further investigation
  3. Code sharing becomes possible : A function may be used later by many other programs this means that a c programmer can use function written by others, instead of starting over from scratch.
  4. Code re-usability increases : A function can be used to keep away from rewriting the same block of codes which we are going use two or more locations in a program. This is especially useful if the code involved is long or complicated.
  5. Increases program readability : It makes possible top down modular programming. In this style of programming, the high level logic of the overall problem is solved first while the details of each lower level functions is addressed later. The length of the source program can be reduced by using functions at appropriate places.
  6. Function facilitates procedural abstraction : Once a function is written, it serves as a black box. All that a programmer would have to know to invoke a function would be to know its name, and the parameters that it expects
  7. Functions facilitate the factoring of code : Every C program consists of one main( ) function typically invoking other functions, each having a well-defined functionality.
User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

Advantages of using C function?

* Debugging is easier * It is easier to understand the logic involved in the program * Testing is easier * Recursive call is possible * Irrelevant details in the user point of view are hidden in functions * Functions are helpful in generalizing the program


How do you write a program in C using the fprint and fscan functions?

By using those two functions in your code.


What are the advantages of using typing tutor program?

amara


What is the importance of using functions in a c program?

C programs do not function without functions.


What r the Demerits of function in C?

Write a merits and demerits of using function in program


Advantages of using Microsoft Excel?

it helps you to manipulate numerical data with formulas and built-in functions


What is the importance of functions in a c plus plus program?

Functions are very important in C++, as you can't write the simplest program to print hello without using a function. Overall you can say that function are building blocks of a C++ program. Functions can also be defined by the programmer to reduce program size.


Write C program using functions to simulate a Calculator with the basic functions - square root and reciprocal?

trytytytytytytytytrf 6 bcvvtgujhy6


What is the use of function in c?

using function we can call the function in the program any where. by using functions we can reduce the code redundancy


What are the five advantages and five disadvantage of using case structures to program multiple alternative decision?

what are five advantages and five disavantages of using case structures to multiple alternative dicisions


Why we write java program using classes?

Classes are well organised functions in java which help discriminate between two different functions.


What is a program for finding sqareroot of a number without using functions?

you read the book how to solve by dromy.