50.0k views
5 votes
The following code contains which of the following errors?

// Declare variables
int period1
int period2;

a
unclosed string literal

b
{ expected

c
; expected

d
) expected

e
not a statement

User Joedragons
by
4.0k points

1 Answer

1 vote

Answer:

c

Step-by-step explanation:

variable declaration statements must end with a semicolon.

User Jason Yost
by
4.1k points