Sometimes to reduce the code size, we create nameless temporary object of class.
When we want to return an object from member function of class without creating an object, for this: we just call the constructor of class and return it to calling function and there is an object to hold the reference returned by constructor.
This concept is known as nameless temporary objects, using this we are going to implement a C++ program for pre-increment operator overloading.
In gcc, the scope of the temporary nameless wstring object is defined by the function.
Login in to like
Login in to comment