I might reword Q1 in a way I understood it at first
To modify a value of a variable where a function is called, you use a pointer to it.
void fun(int *banana)
{
*banana += 1;
}
Type: Posts; User: Click_here
I might reword Q1 in a way I understood it at first
To modify a value of a variable where a function is called, you use a pointer to it.
void fun(int *banana)
{
*banana += 1;
}