On 2/8/07, Nagaraj M <[EMAIL PROTECTED]> wrote: > The if condition getting true because 5 is aggigned to > i, i.e. non-zero value is assigned in if condition. > The c compiler takes it as if(1).
Not quite. The result of an assignment is the assigned value, in this example it will be 5, so if you'd do if (i = 0) then the condition would fail. -- Tamas Marki
