How can I get the data type of an unknown variable?
For example, I want to do something similar to:
How can I implement this function in C?Code:
int func(int x)
if (the data type of x is int)
I have read somewhere that this cannot be done in C, but I was wondering if there is an equivalent way to check the data type of the argument?