Write the general syntax for the declaration of pre-increment-02404
This subjective question is related to the book/course
vu mth718 Topics in Numerical Methods.
It can also be found in
vu mth718 Mid Term Solved Past Paper No. 12.
Question 1: Write the general syntax for the declaration of pre-increment and post-increment member operator function.
Classname operator ++(int) ---- post increment
Answer:
Classname operator ++(); ---- pre incrementClassname operator ++(int) ---- post increment