Computer Science, asked by shockwaveoncoc, 6 months ago

#include<stdio.h>
void main() {
int a,b;
a=1,3,15;
b=(2,4,6);
printf("%d",a+b);
getch();
}

Answers

Answered by Yashicaruthvik
6

Answer:

#include "stdio.h"

int main()

{

int x, y = 5, z = 5;

x = y == z;

printf("%d", x);

getchar();

return 0;

1 is the answer

The crux of the question lies in the statement x = y==z. The operator == is executed before = because precedence of comparison operators (<=, >= and ==) is higher than assignment operator =. The result of a comparison operator is either 0 or 1 based on the comparison result. Since y is equal to z, value of the expression y == z becomes 1 and the value is assigned to x via the assignment operator.

Explanation:

mark me as brainliest and follow me

Similar questions