Which of the following will generate an error?
a) if (answer == 7) {
puts("correct");
}
else {
puts("incorrect");
}
b) puts(answer == 7 ? "correct" : "incorrect");
c) printf("%s\n", answer == 7 ? "correct" : "incorrect");
d) answer == 7 ? puts("correct") : puts("incorrect");
b) puts(answer == 7 ? "correct" : "incorrect");
Computer Science & Information Technology
You might also like to view...
Does the Show Transform Controls option need to be toggled on or off in
the options bar in order to access the transform features of the Move tool? What will be an ideal response?
Computer Science & Information Technology
Overriding a base member function by using an overloaded derived member function is an example of ____.
A. polymorphism B. encapsulation C. inheritance D. information hiding
Computer Science & Information Technology