Important Questions from Functions

  1. What is a function? Mention the advantages of using functions in programming. How functions are categorized in C?
  2. What are the differences between library functions and user defined functions.
  3. 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
  4. Write short notes on “Function Prototype”.
  5. Write about return statement in a function definition clearly stating different conditions that may arise while returning from a function.
  6. Differentiate between the two methods of passing arguments to a function. What are their advantages and disadvantages?
  7. Explain how return statement works? What are its limitations and how can we overcome this?
  8. In how many ways, we can pass arguments to a function? Explain with examples.
  9. Can a function return more than one values? If yes how it is possible?
  10. What do you mean by recursive function? What are the conditions to be met for a function to be recursive?
  11. What happens when actual arguments are less than the formal argument in a function?
  12. What happens when data type of one of the actual arguments does not match with the data type of the corresponding formal argument?
  13. Main( ) is user defined function. How does it differ from other user-defined function?

Functions (Prev Lesson)
(Next Lesson) Pointers
Back to C-Programming

No Comments

Post a Reply

Bhim Gautam
Role : Lecturer
Read More
error: Content is protected !!