147k views
4 votes
Which of the following is not an advantage of using functions?

1) Code reusability
2) Modularity
3) Improved code readability
4) Increased complexity

User Cerad
by
8.3k points

1 Answer

1 vote

Final answer:

Increased complexity is not an advantage of using functions.

Step-by-step explanation:

The correct answer is 4) Increased complexity. While the use of functions provides several advantages such as code reusability, modularity, and improved code readability, increased complexity is not one of them. Functions help break down a large program into smaller, manageable parts, making it easier to understand and maintain.

By separating different functionalities into functions, code becomes more organized and easier to debug. However, as a program grows and more functions are added, the overall complexity of the program may increase.

User Shatazone
by
7.7k points
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.

9.4m questions

12.2m answers

Categories