Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
137
reputation
9

vlaz

To be, or not to be, that is the Question

Translating it into code, we get

theQuestion = 2b || !2b

This returns true for any value of 2b, making the evaluation redundant. We can optimise it by removing the expression and substituting with the result.

1
answer
1
question
~763
people reached
  • Member for 3 years, 8 months
  • 11 profile views
  • Last seen 2 hours ago

Top Tags (4)

Score 0
Posts 1
Posts % 50
Score 0
Posts 1
Score 0
Posts 1
Score 0
Posts 1

Top Posts (2) All Questions Answers | Votes Newest

Badges (9)

Gold

Silver

Bronze

9

Rarest