Suppose for a class String, assignment operator is overloaded with following declaration.
void operator =(const String &);
What will happen when we will write following statement in main()?
str1 = str2 = str3;
Where, str1, str2 and str3 are objects of class String.
- Program will compile successfully.
- Compiler will generate compile time error.
- Run time error will be generated.
- None of the given