Computer Science, asked by shreyarpa2003, 9 months ago

If the value of X=-1 and y=10 then what will be the value of X in the following expression-
Z=( X=1) && (y!=10) && (X=y)

Answers

Answered by nidhidubeyy46
0

Answer:

Ans is 1.

Explanation: Because as you can see first of all the value of x=-1 is given.

Next instructions is:-

z=(x=1)&&(y!=10) &&(x==y)

So now, according to next instruction 1 assign to x . so, the current value of x is 1.

Similar questions