Asked by julia James on Jun 04, 2024
Verified
The controlling expression for a switch statement includes all of the following types except:
A) char
B) int
C) byte
D) double
Double
A data type in programming that is used to represent decimal numbers with double precision floating-point format.
- Understand the structure and usage of multi-way if-else and switch statements.
Verified Answer
CS
Carrie SmithJun 07, 2024
Final Answer :
D
Explanation :
The controlling expression for a switch statement must be an integral type, such as char, int, or byte. It cannot be a floating-point type, such as double.
Learning Objectives
- Understand the structure and usage of multi-way if-else and switch statements.