Saturday, 5 October 2013

Disadvantages of Modular Programming in C


Use of function increases the execution time. This increases is proportionally substantial when the function is very small. During execution when function is called, there is transfer of control from one area of memory to other area of memory. It requires a lot of accounting activities; hence some extra memory and more CPU time is needed. 

When the function is sufficiently large, this increase in time is proportionally less.

No comments:

Post a Comment