English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

1 answers

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/operator-overloading.html

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_overloading

2006-09-02 01:27:37 · answer #1 · answered by Neil 5 · 0 0

fedest.com, questions and answers