
Long questions with answers for this topic
A function is a named block of code that performs a specific task and can be called whenever needed.
A function prototype declares a function’s return type and parameter list to the compiler before its use.
Modular programming is dividing a program into small independent modules (functions) for easier development and reuse.
Recursion is when a function calls itself to solve a problem using smaller subproblems.
A static local variable retains its value between function calls (initialized once).
It can reduce function call overhead for small frequently used functions.
Functions support modular programming. Advantages:
Hence functions make large programs manageable.
Sign in to access the all questions and answers
It's free and takes just 5 seconds