#include #include void main() { int i = 6; while(i) { if (i > 5) { i–; } i = i + 5; if (i > 34) { break; } } printf(“%d”, i); getch(); } What is output?

#include

#include

void main()

{

int i = 6;

while(i)

{

if (i > 5)

{

i–;

}

i = i + 5;

if (i > 34)

{

break;

}

}

printf(“%d”, i);

getch();

}

What is output?

A. Infinite loop

B. 35

C. 38

D. 39

Hướng dẫn

Chọn C 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