You want to write a function that increases the integer value stored in a variable num by one. Given the following function definition, what is the correct function call? Assume that a variable num of type int has been declared and initialized.
Feel free to use the window below to try out some code. Be sure to work the correct answer out "by hand" first before verifying your answer using the code window.
Compile and run the code below in your own C environment.
#include <stdio.h>
/* Don't forget your prototype. */
int main(void) {
int num;
/* Insert your code here.
* Be sure to initialize num
* and print its value before
* and after the function call. */
return(0);
}
void increasebyone(int *a)
{
*a = *a + 1;
}