Question: I want to write a function decrement to decrease the value of an integer by one in a function, but don't want to use a
I want to write a function decrement to decrease the value of an integer by one in a function, but don't want to use a reference parameter, instead I pass a pointer to the value I want to change and call it p;
void decrementint p
What would go here?
What would I put where is says "What would go here?" to complete this function?
Group of answer choices
none of these
&p p ;
p p ;
&p &p ;
&p p ;
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
