Question: In C + + how can pointers be used by in a Function Prototype / Header to create a call by reference and change local
In C how can pointers be used by in a Function PrototypeHeader to create a call by reference and change local variables from main within the Function?
Create an example. Set a pointer to a character and another to an integer and send them both to a Function as CBR
Modify the pointers within the Function and then return to main. Display the int and char. Were they modified as well?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
