Answer:
void doublelt(int *number)
{
*number=*number*2;
}
Step-by-step explanation:
This exercise is for you to learn and understand the PASS BY POINTER syntax. The importance of this is that if you didnt use a pointer you would have to RETURN an int from the function. in that case the code would be:
int doublelt(int number)
{
number=number*2;
return number;
}
Passing by pointer manipulates the value by going inside the memory and where it resides. Without the pointer, the function would create COPIES of the argument you pass and delete them once the function ends. And you would have to use the RETURNED value only.