Which of the following does not perform the following task: display correct if answer is equal to 7 and incorrect if answer is not equal to 7?
a. if ( answer == 7 )
cout << "correct";
else
cout << "incorrect";
b. cout << answer == 7 ? "correct" : "incorrect";
c. cout << ( answer == 7 ? "correct" : "incorrect" );
d. answer == 7 ? cout << "correct" : cout << "incorrect";
b. cout << answer == 7 ? "correct" : "incorrect";
Computer Science & Information Technology
You might also like to view...
Conditions in a query that identify the specific data for which you are looking are known as:
a. aggregate functions b. criteria c. formulas
Computer Science & Information Technology
The Current Database category in the Access Options dialog box allows you to set two objects to open in sequence.
Answer the following statement true (T) or false (F)
Computer Science & Information Technology