In the following code switch (x) { // details omitted which of the following cannot be the datatype of the switch variable x? (note that you can select more than one here) O short O float O char O double O String O byte O int

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter7: Arrays
Section: Chapter Questions
Problem 4PP: (Numerical) Write and test a function that returns the position of the largest and smallest values...
icon
Related questions
Question
In the following code:

```c
switch (x) {
    // details omitted
}
```

Which of the following **cannot** be the datatype of the switch variable `x`?

*(Note that you can select more than one here)*

- [ ] short
- [ ] float
- [ ] char
- [ ] double
- [ ] String
- [ ] byte
- [ ] int
Transcribed Image Text:In the following code: ```c switch (x) { // details omitted } ``` Which of the following **cannot** be the datatype of the switch variable `x`? *(Note that you can select more than one here)* - [ ] short - [ ] float - [ ] char - [ ] double - [ ] String - [ ] byte - [ ] int
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning