Are there any tutorials on defining a variable so that it can be used for any type. Example the following:
int main() {
var myvariable;
myvariable="this is a test";
myvariable=3.141592;
myvariable=myvariable*myvariable;
return 0;
}
But I don't know how to make it possible to make the above code possible. It is mainly so I can forward the last parameters of the fprintf and fscanf function in a dll function but would be useful for other things too. Does anybody know how to define a mixed variable?