A function refers to a group of statements that perform a task together. Furthermore, while defining a function, a function header and a function body must be included. There are various types of functions in Python and C++. In this chapter, we will be focusing on user-defined function to get a clear idea.
- Defining a Function
- Function Prototype
- Invoking/Calling a Function
- Passing Arguments to Function
- Specifying Argument Data Types
- Default Argument
- Constant Argument
- Call by Value
- Call by Reference
- Returning Values from a Function
- Scope Rules
- Local and Global Variables
- Relating to Parameters and Return Type Concepts in Built-in Functions