Q:

Compile a program that has incorrectly nested comments

0

Compile a program that has incorrectly nested comments.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

/*
 * Error comment: /*  */
 */

int main () {
  return 0;
}

 

Output:

main.cpp:3:3: error: expected unqualified-id before ‘/’ token
    3 |  */
      |   ^

 

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now