#include #include void main() { static int i; int j; for(j = 0; j <= 5; j++) switch(j) { case 1: i++; break; case 2: i+=2; case 4: i /= 1; j += 1; continue; default: –i; continue; } printf (“%d”, i); getch(); } What is output?

#include

#include

void main()

{

static int i;

int j;

for(j = 0; j <= 5; j++)

switch(j)

{

case 1:

i++;

break;

case 2:

i+=2;

case 4:

i /= 1;

j += 1;

continue;

default:

–i;

continue;

}

printf (“%d”, i);

getch();

}

What is output?

A. 0

B. 2

C. 3

D. -4

Hướng dẫn

Chọn B là đáp án đúng

 

Thư viện tài liệu12 Tháng bảy, 2023 @ 3:04 chiều

Đánh giá chủ đề này
How to whitelist website on AdBlocker?

How to whitelist website on AdBlocker?

  1. 1 Click on the AdBlock Plus icon on the top right corner of your browser
  2. 2 Click on "Enabled on this site" from the AdBlock Plus option
  3. 3 Refresh the page and start browsing the site