Identify the compiler errors in and state what is wrong with the code.
```
float inventory, case;
inventory = 8;
if(inventory = 3)
{
case = inventory;
inventory = 0;
}
```
There is one compiler error, “case” cannot be used as a variable, it is a keyword.
```
float inventory, case;
inventory = 8;
if(inventory = 3) <
case = inventory;
inventory = 0;
}
```
You might also like to view...
Which of the following types of charts shows only the relationships between general program tasks without showing specific processing logic?
(A) hierarchy chart (B) flowchart (C) both A and B (D) neither A nor B
Which of the following are characteristics of single-mode fiber optic cable? (Choose all that apply.)
A. 8-10 micron central core B. uses a single light wave C. transmission distance up to 2 km D. uses LEDs for the transmission source
Just as you can block statements that depend on an if, you can also block statements that depend on a(n) ____.
A. Boolean expression B. else C. constant D. operator
Security by obscurity is sometimes criticized as being too weak.
Answer the following statement true (T) or false (F)