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. The if statement should be if ( x == 2 )
You might also like to view...
Describe the sorting pattern. Discuss the Selection sort routines in terms of this pattern.
What will be an ideal response?
In most workplaces and many homes, computers are connected to form a local ________ to facilitate sharing of equipment and to improve security
Fill in the blank(s) with correct word
A 3G or 4G cellular adapter built into a smartphone or notebook computer is an example of a(n) ________
A) Ethernet adapter B) network adapter C) wireless adapter D) router
What protocol takes the place of certificate revocation lists and adds real-time status verification?
A. RTCP B. RTVP C. OCSP D. CSRTP