Question

The statement
while (--counter >= 1) {
printf("%s ", counter % 2 ? "even" : "odd");
}
can not be rewritten as
(a)
while (--counter >= 1) {
if (counter % 2) {
puts("even");
}
else {
puts("odd");
}
}
(b)
while (counter >= 1) {
if (counter % 2) {
puts("even");
}
else {
puts("odd");
}
}
--counter;
(c)
while (counter >= 1) {
if (counter % 2) {
puts("even");
}
else {
puts("odd");
}
--counter;
}
(d)
do {
printf("%s ", counter % 2 ? "odd" : "even");
--counter;
} while (counter >= 2);

Answer

This answer is hidden. It contains 3 characters.