Can we use function on left side of an expression in C and C++?
A) Possible in C and C++.
B) Possible in C but not in C++.
C) Possible in C++ but not in c.
D) None of the above.
Solution: C is correct
In C++, only the functions which return some reference variables can be used on the left side of an expression. The reference works in a similar way to pointers, so whenever a function returns a reference, an implicit pointer is being returned to its return value. Therefore, through this, we can use a function on the left side of an assignment statement