Q18. Identify the errors in the following code segment:
cout<<”Enter two numbers: “;
- Variable auto is invalid (it is a C++ reserved keyword).
- Variables (num, auto (though invalid)) are not defined before their usage.
- Even though variable area has been dynamically initialized but the variables is depends upon, that is, length and breadth have not been defined.
- return statement is missing.