When passing an array to a function in C, what is actually being passed?
- A pointer to the first element
- The entire array
- The size of the array
- The value of the first element in the array
In C, when passing an array to a function, only a pointer to the first element is passed, allowing the function to access the entire array.
Loading...
Related Quiz
- How does the strtok() function work in C?
- You are tasked with creating an easy-to-read API for a library written in C. What feature can you use to make the data types and function signatures more user-friendly?
- When a value is passed to a function by value, what is passed to the function?
- You are tasked with optimizing memory usage in a real-time application that processes complex data structures. How can pointers assist in achieving this goal?
- To write data to a file, the file must be opened in ________ mode.