Computer Science, asked by deekshithacheeli, 6 months ago

Question #4
Why typically a long program is divided into smaller functions or procedures?
to increse perfomance
for better reusability
some languages make it mandatory
none of the above

Answers

Answered by valeriy69
12

for better reusability

\small\mathsf\color{lightblue}useful?\: \color{white}\mapsto\: \color{gold}brainliest

Answered by SmritiSami
2

A long program is divided into smaller functions or procedures for better reusability. (Option B)

  • If a program is divided into smaller parts then it allows testing a part of the program individually without testing the whole program again and again.
  • It makes it easier for the programmer to understand the program.
  • It becomes much easier to detect errors in a program.
  • It is easier to write a program in this manner.
  • Often in large functions you have to do more-or-less the same thing many times. By generalizing this into a single common function, you can use that one block in multiple places.
  • Thus, a long program is divided into smaller functions or procedures so that it becomes easy to understand and for better reusability.
Similar questions