What will be the output of the program #includeint main () {int x=12,y=7 z;z=x!=4||y==2;printf("z=%d\n",z);return 0;}
Answers
Answered by
0
Answer:
1
Explanation:
value of z will be 1.
Because x!=4 means x is not equal to 4 which is true condition and it's value is set to be 1
y==2 which is false and value set tobe 0
finally 1||0 that is 1 or operator with 0 is 1
that's why answer is 1
Similar questions
Hindi,
5 months ago
Math,
5 months ago
India Languages,
10 months ago
Computer Science,
10 months ago
Chemistry,
1 year ago