asked 38.9k views
24 votes
What the answer to x,y, and z

What the answer to x,y, and z-example-1

2 Answers

4 votes
Find it yourself df
answered
User Greenwich
by
7.5k points
5 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

No related questions found

Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.