Thursday, July 9, 2009

Is there any operator overloading tutor in C/C++???Please help.....Give me link..?

There are numerous examples of operator overloading..


in C++, for example, + is used for mathematical addition as well as string concatenation. You for yourself can define examples of operator overloading..


See a tutorial at:


http://www.parashift.com/c++-faq-lite/op...





For C, however, there is no way to explicitly support operator overload though if you notice, + (mathematical addition is itself an example of overloaded operator.. it works for integers as well as floats)..





Read up more about this in wikipedia, if you need more clarifications: http://en.wikipedia.org/wiki/Operator_ov...


No comments:

Post a Comment