Question 6
The following declaration: int i = 0b10;
- is invalid
- sets variable i with an integer value equal to 10
- sets variable i with an integer value equal to 2 (10 binary)
- sets variable i with an integer value equal to 8 (10 octal)
CPA-21-02 practice questions, page 2 of 2, with answer review and explanations.
Question 6
Question 7
Question 8