in Search
     

Browse Site by Tags

Showing related tags and posts accross the entire site.
All Tags » techie » C » .NET (RSS)
  • Assignment in a WHILE condition

    Before, I used to think that in C, the assignment operator always evaluate to true. It is because of this context: [code language="C#"] while (intLeft == intRight) { //do whatever } [/code] If you mistyped the comparison operator (==) as a single equal sign (=) for assignment (of course it will compile...
    Posted to Weblog by jokiz on 01-17-2005
Page 1 of 1 (1 items)