
Functions
1. What is a function?
Ans: A function is a self-contained block or a sub-program containing one or more statements that
perform a particular task.
2. How a function is invoked?
Ans: The desired function is called from the main() function. The statement(s) of a called function
are written outside the main() function.
3. List the types or classify the functions supported by the C language?
Ans: C language supports the following two types of functions:
1. Library functions and
2. User-defined functions.
4. What do you mean by library functions? Briefly explain it by giving its example.
Ans: The library functions are pre-defined set ...