Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by defrost

13 hours ago

numbers[i] < 500

is a conditional (true or false) that evaluates to 1 or 0 (in C)

Therefore smlen has either a 0 or a 1 added to it's value .. equivilent to only adding 1 if True.

1 comment

defrost

Reply

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities