Q:

Compile the following program to see what happens when you forget the semicolon after a class definition. Remember the message for future reference

0

Compile the following program to see what happens when you forget the semicolon after a class definition. Remember the message for future reference.

struct Foo { /* empty */ } // Note: no semicolon
int main()
{
return 0;
}

All Answers

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

//struct Foo { /* empty */ }  // Error: lack semicolon
int main() {
  return 0;
}

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