#include #include void main() { int i = 3, j = 2, k = -1, m; m = ++i&&++j&&++k; printf(“%d %d %d %d”, i, j, k, m); getch(); } What is output of the program?

#include

#include

void main()

{

int i = 3, j = 2, k = -1, m;

m = ++i&&++j&&++k;

printf(“%d %d %d %d”, i, j, k, m);

getch();

}

What is output of the program?

A. 4 3 0 0

B. 3 3 0 1

C. 4 2 0 0

D. None of these

Hướng dẫn

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

Xem lời giải

Xem lời giải

m = ++i&&++j&&++k = (++i)&&(++j)&&(++k) = 4 && 3 && 0 = 0

 

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