Ethan O.

asked • 02/19/20

Identify the errors (syntax or logical) in the following code segment. Select all that apply.

char game[10];

getline(game, 9);

if (game == "Zombicide")

cout << game;

a) declaration of the variable game
b) checking the value of game
c) using getline to read data for game
d) printing out the value of game

1 Expert Answer

By:

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.