I'm trying to understand why my program won't to compile,
int myfunction(int x)
{
return x;
}
int main(){
int x = 10;
int result=0;
result=myfunction(x) * myfunction(++x);
printf("Result is = %d", result);
}
After execution i get : warnings being treated as errors In function 'int main()': operation on 'x' may be undefined. Someone has an idea ?