What is difference between function overloading and operator overloading?



What is difference between function overloading and operator overloading?..

Answer / Prabhat Kumar Chauhan

Function overloading in C++ allows multiple functions with the same name but different parameter lists, while operator overloading allows operators like +, -, *, etc., to be used with user-defined data types.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

How can I get the current date or time of day in a c program?

1 Answers  


What does %c mean in c?

1 Answers  


What are type modifiers in c?

1 Answers  


What are the different types of constants?

1 Answers  


How can I get back to the interactive keyboard if stdin is redirected?

1 Answers  


Explain goto?

1 Answers  


what are the advanced features of functions a) function declaration and prototypes b) calling functions by value or by reference c) recursion d) all the above

1 Answers  


Explain the concept of "dangling pointers" in C.

2 Answers  


What is a floating point in c?

1 Answers  


What is the modulus operator?

1 Answers  


What are the output(s) for the following ? #include char *f() {char *s=malloc(8); strcpy(s,"goodbye")} main() { char *f(); printf("%c",*f()='A'); }

1 Answers   Wilco,


typedef struct { int i:8; char c:9; float f:20; }st_temp; int getdata(st_temp *stptr) { stptr->i = 99; return stptr->i; } main() { st_temp local; int i; local.c = 'v'; local.i = 9; local.f = 23.65; printf(" %d %c %f",local.i,local.c,local.f); i = getdata(&local); printf("\n %d",i); getch(); } why there there is an error during compiling the above program?

1 Answers  


Categories