- What is a function? Mention the advantages of using functions in programming. How functions are categorized in C?
- What are the differences between library functions and user defined functions.
- define the terms:
- function declaration and function definition
- call by value and call by reference
- actual and formal argument
- global and local variable
- recursion and iteration
- Write short notes on “Function Prototype”.
- Write about return statement in a function definition clearly stating different conditions that may arise while returning from a function.
- Differentiate between the two methods of passing arguments to a function. What are their advantages and disadvantages?
- Explain how return statement works? What are its limitations and how can we overcome this?
- In how many ways, we can pass arguments to a function? Explain with examples.
- Can a function return more than one values? If yes how it is possible?
- What do you mean by recursive function? What are the conditions to be met for a function to be recursive?
- What happens when actual arguments are less than the formal argument in a function?
- What happens when data type of one of the actual arguments does not match with the data type of the corresponding formal argument?
- Main( ) is user defined function. How does it differ from other user-defined function?
No Comments