PRF192_-_RE_-_SU_2023_575.webp
Eso89

PRF192_-_RE_-_SU_2023_575.webp

  • Media owner Eso89
  • Ngày thêm
(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.

Exit 30

Thông tin

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

Image metadata

Filename
PRF192_-_RE_-_SU_2023_575.webp
File size
53.6 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom