What is operator overloading? Give Example
Answers were Sorted based on User's Feedback
Answer / ramkumar
when have two or more operator is called operator overloading.
E.g,. i++,a++b
| Is This Answer Correct ? | 10 Yes | 36 No |
What are the valid types of data that the main () can return in C/C++ language
what are the ways in which a constructors can be called?
Which is faster post increment or pre increment ? and in which cases should u use either - to increase speed?
what is the difference between containership and inheritence?
Why u change company?
c++ program to swap the objects of two different classes
Why do we use oop?
Can we create object of interface?
Write a C++ program to conduct an election of a mayor.Declare a class ELECTION With the following specification: Data member: Name 25 character Age Integer symbol 1 character Member functions: To accept data for 20 contestant To accept symbol as voting from 100 voters. To declare the winner and the loser.
1 Answers Global Academy, Infotech,
What is memory leak and memory corruption?
in the following, A D B G E C F Each of the seven digits from 0,1,2,3,4,5,6,7,8,9 is: a)Represented by a different letter in abov fig: b)Positioned in the fig abov so tht A*B*C,B*G*E,D*E*F are equal. wch does g represents? C
Is following functions are said to be overloaded? int add(int a,int b) char *add(int a,int b)