Question: In C + + , how can pointers be used instead of sending an array to a function? Set a pointer to an array. Send

In C++, how can pointers be used instead of sending an array to a function?
Set a pointer to an array. Send the pointer to a function as a call-by-reference. Modify and increment the pointer.
Display the array in main() have the values changed?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!