Function overloading in C : Does C support function overloading

doesn't support function overloading. In c it is not possible to declare two function of same name but different signatures like number of parameters, data type of parameters, order of parameter etc.

For example:

int display(int x){
    return x;
int display(void){
    return 1;
void main(){
    int x,y;
    printf("%d  %d",x,y);

Output: Compilation error

No comments: