PRF192_-_SP_2025_-_FE_3581.webp
P

PRF192_-_SP_2025_-_FE_3581.webp

Kizspy | Question: 17
(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
proud_nation
Ngày thêm
Lượt xem
2,442
Lượt bình luận
13
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom