in Search
     

Browse Site by Tags

Showing related tags and posts accross the entire site.
All Tags » Tips » C (RSS)
  • The (-) operator

    I used to multiply a numeric number to -1 just to get its additive inverse (negative value for positive numbers) and I found out that the (-) operator does it implicitly. int value = 10 int negativeValue = value * -1 int negativeValueAlso = -value
    Posted to Weblog by jokiz on 04-28-2005
Page 1 of 1 (1 items)