Which of the following is true about expression switch statement in Go?
The expression used in a switch statement must have an integral or boolean expression, or be of a class type in which the class has a single conversion function to an integral or boolean value.
If expression is not passed than default value is true.
The constant-expression for a case must be the same data type as the variable in the switch, and it must be a constant or a literal.
All of the above.
© 2017 QuizBucket.org