What is wrong with this code?

``` if(x = 2)
{
cout<<”The number is 2”;
}```
A. There should not be { }’s
B. A semicolon is missing in the if statement – if (x = 2 )
C. The if statement should be if ( x == 2 )
D. Nothing


C

Computer Science & Information Technology

You might also like to view...

Which of the following are included in the first four lines of a research paper?

A) The report title B) The name of the Style Guide used for the paper C) The report author D) The page number

Computer Science & Information Technology

While performing routine testing of a hot standby site located at a remote hosting center, a system administrator is unable to access one of the server operating systems to verify functionality. Which of the following is MOST applicable to access the host?

A. KVM over IP B. RDP over HTTP C. Secure shell D. Serial console access E. VNC

Computer Science & Information Technology

XHTML is the acronym for ________.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

FreeTrip, MapQuest, and Expedia Maps are examples of online route planners.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology