devxlogo

Overloading Prefix and Postfix Forms of ++ and —

Overloading Prefix and Postfix Forms of ++ and —

Since the operators ++ and — can have two definitions (one for prefix, other for postfix), we should have two ways to overload them.
These overloaded fns. are differentiated on the basis of argumnents they take. Here

devx-admin

Share the Post: