A pointer passed by value to a function allows the function to change the _______ to which the pointer points.
- value
- address
- direction
- data type
When a pointer is passed by value to a function, the function gets a copy of the pointer. This means that the function can modify the data at the address the pointer points to, but it cannot change the address of the original pointer itself.
Loading...
Related Quiz
- Consider a large-scale software project that heavily utilizes templates and generic programming. With an impending deadline, the compilation time is becoming a significant bottleneck. Which C++ feature/technique might be best suited to reduce compilation times without altering runtime performance?
- How does the logical AND (&&) operator behave when the first operand is false?
- In C++, the return statement cannot be used inside a _______.
- How does friendship relation in C++ affect inheritance hierarchies, if at all?
- How does C++ treat an enum regarding its type and size?