(Shamelessly stolen from reddit)

all 15 comments

sorted by: hot top controversial new old
[–] 18 points 1 year ago (12 children)

I'm not CS smart enough to understand this... 😢

  • source
  • hideshow 12 child comments
  • [–] 41 points 1 year ago

    "Ternary operator" means "operator that takes three things", like unary and binary operators take one and two things.

    In C there is an operator for conditional expressions (an 'if' that you can put inside expressions) and it looks like this condition ? trueBranch : falseBranch. It takes three expressions, so it's a ternary operator.

    Except it's the only ternary operator in C (and most languages, if they have one at all), so instead of calling it something like "conditional operator", they just call it "the ternary operator"

  • source
  • parent
  • [+] 25 points 1 year ago* (2 children)
  • [–] -2 points 1 year ago (5 children)

    The joke is that the people in the conversation are kinda dumb

  • source
  • parent
  • hideshow 5 child comments
  • [–] [S] 1 point 1 year ago (4 children)
  • [–] -1 points 1 year ago (3 children)

    Well if you make me actually explain it, I'm going to sound like an asshole; the joke is so obvious and low-level and the type of humor so uninspired that I figure they must be a little.. you know, dumb.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 10 points 1 year ago (1 child)