C Books Guide and List
C++ Books Guide and List
Best Java Books

3,749 questions

4,049 answers


10,705 users

What is Operator overloading in c?

0 votes
asked by sara Guru (24,570 points)

1 Answer

0 votes
When an operator is overloaded, it takes on an additional meaning relative to a certain class. But it can still retain all of its old meanings.
1) The operators >> and << may be used for I/O operations because in the header, they are overloaded.
2) In a stack class it is possible to overload the + operator so that it appends the contents of one stack to the contents of another. But the + operator still retains its original meaning relative to other types of data.
answered by rock Expert (14,990 points)

Related questions

0 votes
2 answers 46 views
46 views asked by anonymous
+1 vote
1 answer 84 views
84 views asked by anonymous
0 votes
1 answer 8,234 views
+1 vote
1 answer 148 views
148 views asked by anonymous