What is a user-defined function in C?
21 views
- A function that is defined in the C standard library
- A function that is defined by the user to perform a specific task (Correct Answer)
- A function that is used to print formatted text to the console
- A function that is used to read input from the console
Explanation
Correct answer: b) A function that is defined by the user to perform a specific task
Explanation: A user-defined function in C is a function that is defined by the user to perform a specific task. It can be used to simplify program logic and make programs easier to read and maintain.