#include <stdio.h> #include <conio.h> void main() { int n = 2; printf("%d %d %d", n <= 3, n = 4, n >= 2); getch(); }</blockquote> What

Qỳnh Layla

New member
#include <stdio.h>
#include <conio.h>
void main()
{
int n = 2;
printf("%d %d %d", n <= 3, n = 4, n >= 2);
getch();
}</blockquote>
What will be output of the program?
A. 0 4 1
B. 1 4 1
C. 4 4 1
D. None of these
 

Đỗ Hòa

New member
Hướng dẫn
Chọn A là đáp án đúng
Xem lời giải
Xem lời giải
Thứ tự thực hiện các phép toán trong printf từ phải sang trái.
(n >= 2) = (2 >= 2) = 1
n = 4
n <= 3 = (4 <= 3) = 0