When an array is passed to a function, it is actually passing the ________ of the first element.
- Address
- Copy
- Reference
- Value
When you pass an array to a function in C, you are actually passing the address (pointer) of the first element of the array. This allows the function to access and modify the original array.
Loading...
Related Quiz
- In C++, what happens when two overloaded functions have the same number and types of parameters but differ in return type?
- How does the 'extern' keyword affect the scope and lifetime of a variable in C?
- What is the default value of elements in an array declared as int arr[5]; in C?
- How do you declare a pointer to an integer in C?
- To split a string into tokens in C, the function ________ is used.