Closed QFSW closed 5 years ago
No, both are not valid C90.
$ gcc -std=c90 -ansi -pedantic -o main main.c
main.c:2:8: error: conflicting types for ‘multiply’
Thanks, so functions must be completely unique by name in C90?
Yes, function overloading does not exist in C, and only exists in C++. For example: https://stackoverflow.com/questions/479207/how-to-achieve-function-overloading-in-c/25026358#25026358
Do we need to support overloading functions? Such as
In a similar vein, what about default parameters?