Which of the following lines does NOT consist of (a) valid, though boastful, comment(s)?
Explain your answers.
/* This is a //*// First Rate Program
// /* This is a */ First Rate Program
//* This is a //*// First Rate Program //*//
//**// This is a //**// First Rate Program //**//
a) /* This is a //*// First Rate Program - invalid since /* This is a //* it is an illegal expression where it should end with */
So to make it valid the above comment should be /* This is a */ // First Rate Program
The below three comments are valid since they are starting with //(two slashes)
// /* This is a */ First Rate Program
//* This is a //*// First Rate Program //*//
//**// This is a //**// First Rate Program //**//
So from the above comments only a is invalid
For reference i am giving error you will get shown below
Get Answers For Free
Most questions answered within 1 hours.