What is the advantage of using functions in C language?
A. To avoid repetition of code
B. To make the program modular and easy to understand
C. To facilitate code reuse and maintenance
D. All of the above
Answer:D
What is the advantage of using functions in C language?
A. To avoid repetition of code B. To make the program modular and easy to understand C. To facilitate code reuse and maintenance D. All of the above
Explanation: Functions are subprograms that can be called from anywhere in the program and carry out a specific task. Functions make programs modular and simple to understand, reduce the need for repetitive code, and make code reuse and maintenance easier.