298,763 views
2 votes
2 votes
What the answer to x,y, and z

What the answer to x,y, and z-example-1
User Ahoo
by
2.6k points

2 Answers

14 votes
14 votes
Find it yourself df
User Drew Covi
by
3.0k points
26 votes
26 votes

You can think of x && y || z as equivalent to: int func (int x, int y, int z) { if (x) { if (y) { return true; } } if (z) { return true; } return false; } Since both x and y are fixed to be non-zero values the first return statement is always hit. thats what i think

User Matwr
by
3.0k points