#include<stdio.h>
int function()
{
int test1;
int test2;
addit(test1 + test2);
return(0);
}
void addit(test1 + test2)
{
printf("Sum is: %d",test1 + test2);
}
Whenever I define a void function in C with an operator in the parameters, I always get the error:
error: expected ')' before '+' token
How do I fix this while still using the operator? Any help is appreciated.