Identify the compiler errors in and state what is wrong with the code.

one compiler error in this code. The “If” statement must be “if”.
There are logic errors and possible warnings. The a << b is a shift operation and should not be in an if statement. The c == b will compile but is useless. Visual C++ reports this as a warning.

```
int a = 7, b = 9, c = 2;
If(a << b)
{
c == b;
}
```

Computer Science & Information Technology

You might also like to view...

The MIN and MAX functions ignore nulls

Indicate whether the statement is true or false

Computer Science & Information Technology

PDF file format is in XML Paper Specifications

Indicate whether the statement is true or false

Computer Science & Information Technology