PRF192_-_SU_2024_-_RE_2469.webp
Yuno_76

PRF192_-_SU_2024_-_RE_2469.webp

  • Media owner Yuno_76
  • Ngày thêm
Kizspy | Question: 24
(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;
FUOVER
}
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
Yuno_76
Ngày thêm
Lượt xem
2,021
Lượt bình luận
4
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom