When a value is passed to a function by value, what is passed to the function?
- A copy of the value
- A pointer to the value
- A reference to the value
- The memory address of the value
When a value is passed to a function by value, a copy of the actual value is passed to the function. Changes made to the parameter inside the function do not affect the original value.
Loading...
Related Quiz
- You are working on a program that simulates a chessboard. How would you represent the chessboard using arrays?
- What is a potential risk of using the gets() function for reading strings in C?
- The ________ keyword in C suggests to the compiler to use a CPU register for the variable to optimize access time.
- Which function would you use to compare two strings lexicographically in C?
- A ________ pointer is a pointer that still points to a memory location that has been deallocated.