#include #include int main() { int i = 0, j = 0; while (i < 5, j < 10) { i++; j++; } printf(“%d, %dn”, i, j); getch(); } What is output ?

#include

#include

int main()

{

int i = 0, j = 0;

while (i < 5, j < 10)

{

i++;

j++;

}

printf(“%d, %dn”, i, j);

getch();

}

What is output ?

A. 5, 5

B. 10, 10

C. Syntax error

Hướng dẫn

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

Xem lời giải

Xem lời giải

Biểu thức của vòng lặp while có thể là nhiều biểu thức và vòng lặp while sẽ chỉ quan tâm đến biểu thức cuối cùng.

 

Thư viện tài liệu12 Tháng bảy, 2023 @ 3:05 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