Computer Science, asked by koushal07, 10 months ago

why is the concept of function used in c?
A. To use divide and conquer strategy
B. For code reusability
C. Enhance the logical clarity of the program
D. All of the above

Answers

Answered by ankurbadani84
0

Answer:

D. All of the above

Explanation:

the concept of function used in c for :-

A. To use divide and conquer strategy. This division is separated using functions.

B. For code re usability - this helps in avoiding repeating a set of statements many times.

C. Enhance the logical clarity of the program. This makes debugging simpler.

Answered by lovingheart
0

Answer:

All the above  options are right

Explanation:

A function is used in ‘C’ language to “divide and conquer strategy”, for code re-usability and also to enhance the logical clarity of the program. Function makes number lines to get reduce for the repeated functionality.

If you implement function in different programming languages, you can use functions written in one file into another file. But a function should be written only when the lines of code is more than 3 lines.

Otherwise the function call takes more time to execute.

Similar questions