Give the output on the screen of the following program
#include <stdio.h>
int main()
{
int x = 3, y , z;
x*= 2 + 1; printf("%d\n",x);
x *= y = z = 3; printf("%d\n",x);
x = y == z ; printf("%d\n",x);
x == (y = z); printf("%d\n",x); return 0;
}
Difficulty level
This exercise is mostly suitable for students
9
27
1
1
Back to the list of exercises
Looking for a more challenging exercise, try this one !!
Second maximum in an array