Thursday, March 11, 2010
Function overloading in C : Does C support function overloading
C 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;
x=dispaly();
y=display(1);
printf("%d %d",x,y);
getch(
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment