Slip 18 - B) Create a C++ class MyArray with data members - int *arr - int size Write necessary member functions to accept and display Array elements. Overload the following operators: Operator Example Purpose - (Unary) -Al Reverse array elements. +(Binary) A2=A+n Add constant n to all array elements.

Post a Comment

0 Comments