Q22.webp
Erza_girl

Q22.webp

Kizspy | Question: 22
(Choose 1 answer)
Why the following code is wrong?
#include<stdio.h>
int main()
{
int choice;
scanf("%d",&choice);
switch(choice)
{
case 1.5:
printf("You choice 1.5");
case 2.3:
printf("You choice 2.3");
}
return 0;
}
A. The case label is the real number
B. Missing "break" command
C. Missing "default" command
D. The variable name is wrong

Thông tin

Category
PRF192
Thêm bởi
Erza_girl
Ngày thêm
Lượt xem
1,928
Lượt bình luận
7
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom