Hi everyone I have a question: How can I make a function accept different types of arguments? For example, a square function that takes int, float, long and double that computes the square of the argument and is transparent to the data type of the argument:
void square ( ??????? n) {
printf ("%f", (float) n*n);
}
Is this doable? Thanks a lot!