When a variable is passed by what, any changes made to the parameter inside the function do not affect the original value?
- Pointer
- Reference
- Type
- Value
When a variable is passed by value, a copy of the original value is created, and any changes made inside the function do not affect the original variable.
Loading...
Related Quiz
- The members of a structure are accessed using the ________ operator.
- You are working on a software project in C++ that requires sorting a list of items in multiple ways. How could you leverage function overloading to achieve this?
- The memory consumed by an array declared as float arr[10][20]; is ________.
- What is the purpose of the 'sizeof' operator in C?
- What is the advantage of using function pointers in C for implementing callback functions?