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 |
How can I get the current date or time of day in a c program?
What does %c mean in c?
What are type modifiers in c?
What are the different types of constants?
How can I get back to the interactive keyboard if stdin is redirected?
Explain goto?
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
Explain the concept of "dangling pointers" in C.
What is a floating point in c?
What is the modulus operator?
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'); }
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?