Weeble (clockworksaint) wrote,
Weeble
clockworksaint

Programmer types, here's a question. What would you think this expression evaluates to? (I'm being nasty and not specifying the language, so feel free to qualify your answers as much as you want.) Do you think it should have a well-defined value, or is it nonsense? What do you think the "%" operator a) means and b) is useful for? And lastly, how do you pronounce the expression?

   (-1)%5

(P.S. I'd be interested to know what your first thought is, rather than what you find out when you look it up in the manual or run a test program.)
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

  • 8 comments