PRF192_-_SP_2024_-_RE_1724.webp
true_love

PRF192_-_SP_2024_-_RE_1724.webp

Qmark: 1
Total Marks: 50
Vol: 8
Font: Microsoft Sans Serif
Size: 10
Time Left:46:21
Multiple Choices
}
(Choose 1 answer)
Why the following code is wrong?
int choice = 0, a=0, b = 1, c = 2;
switch(choice){
case a:
printf("case A happens!");
break;
case b:
printf("Wow, that is B!");
break;
case c:
printf("C please!");
break;
A. Lack of default at the end of switch block
B. Can not assign value of choice, a, b, and c at the declaration time
C. The value after the "case" keyword must be the constant
D. The above code is correct.

Thông tin

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

Image metadata

Filename
PRF192_-_SP_2024_-_RE_1724.webp
File size
223.9 KB
Dimensions
1834px x 882px

Share this media

Back
Bên trên Bottom