Home | | Computer Science 11th std | Need for Functions in Programming

Computer Science - Need for Functions in Programming | 11th Computer Science : Chapter 11 : Functions

Chapter: 11th Computer Science : Chapter 11 : Functions

Need for Functions in Programming

To reduce size and complexity of the program we use Functions.

Need for Functions

 

To reduce size and complexity of the program we use Functions. The programmers can make use of sub programs either writing their own functions or calling them from standard library.

 

1. Divide and Conquer

 

• Complicated programs can be divided into manageable sub programs called functions.

• A programmer can focus on developing, debugging and testing individual functions.

• Many programmers can work on different functions simultaneously.

 

2. Reusability:

 

• Few lines of code may be repeatedly used in different contexts. Duplication of the same code can be eliminated by using functions which improves the maintenance and reduce program size.

• Some functions can be called multiple times with different inputs.

 

Tags : Computer Science , 11th Computer Science : Chapter 11 : Functions
Study Material, Lecturing Notes, Assignment, Reference, Wiki description explanation, brief detail
11th Computer Science : Chapter 11 : Functions : Need for Functions in Programming | Computer Science


Privacy Policy, Terms and Conditions, DMCA Policy and Compliant

Copyright © 2018-2024 BrainKart.com; All Rights Reserved. Developed by Therithal info, Chennai.