#include #include int main() { int i = 4, j = -1, k = 0, w, x, y, z; w = i||j||k; x = i&&j&&k; y = i||j&&k; z = i&&j||k; printf(“%d %d %d %d”, w, x, y, z); getch(); } What will be the output of the program?

#include

#include

int main()

{

int i = 4, j = -1, k = 0, w, x, y, z;

w = i||j||k;

x = i&&j&&k;

y = i||j&&k;

z = i&&j||k;

printf(“%d %d %d %d”, w, x, y, z);

getch();

}

What will be the output of the program?

A. 1 1 1 1

B. 1 0 0 1

C. 1 0 1 1

D. Other

Hướng dẫn

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

 

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