If a function is defined as
Code:
int myfunction (int var1, int var2, struct mystruct *structname, double x, int x_flag) {
...
return 0;
}
And if I want to use all these variables I call it:
Code:
myfunction(var1, var2, &structname, x, x_flag)
But in the case when I don't have/need some of the variables, I would like to write zeros.
Code:
myfunction (var1, var2, NULL, 0, 0)
What I would like to know is if I can simply write integer 0 instead of the double or float value that I am not using, or it has to be 0.0, i.e. written in double/float format and not integer?
Does it depend on the compiler?