What operators can you overload in c++?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C++ General Interview Questions

What are proxy objects in c++?

0 Answers  


Explain this pointer?

0 Answers  


Should the member functions which are made public in the base class be hidden?

0 Answers  


What is an inclusion guard?

0 Answers  


Evaluate as true or false: !(1 &&0 || !1) a) True b) False c) Invalid statement

0 Answers  






When one must use recursion function? Mention what happens when recursion functions are declared inline?

0 Answers  


. If employee B is the boss of A and C is the boss of B and D is the boss of C and E is the boss of D. Then write a program using the Database such that if an employee name is Asked to Display it also display his bosses with his name. For eg. If C is displayed it should also display D and E with C?

0 Answers  


1)#include <iostream.h> int main() { int *a, *savea, i; savea = a = (int *) malloc(4 * sizeof(int)); for (i=0; i<4; i++) *a++ = 10 * i; for (i=0; i<4; i++) { printf("%d\n", *savea); savea += sizeof(int); } return 0; } 2)#include <iostream.h> int main() { int *a, *savea, i; savea = a = (int *) malloc(4 * sizeof(int)); for (i=0; i<4; i++) *a++ = 10 * i; for (i=0; i<4; i++) { printf("%d\n", *savea); savea ++; } return 0; } The output of this two programs will be different why?

5 Answers  


What are the advantages of using a pointer?

0 Answers  


Do class declarations end with a semicolon?

0 Answers  


Explain the advantages of using friend classes.

0 Answers  


Write a program that read 2o numbers in and array and output the second largest number. Can anybody help??

7 Answers  


Categories