197
reputation
1
3
16

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.

theQuestion = true

1
answer
1
question
~157
people reached
  • Member for 4 years, 3 months
  • 13 profile views
  • Last seen 9 mins ago

Top tags (6)

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

Top posts (2) All Questions Answers | Votes Newest

Badges (20)

Gold

1

Rarest

Silver

3

Rarest

Bronze

16

Rarest