|
|
if ( deptno == s[r].DeptNo,row )
deptno == s[r].DeptNo
and discards the result, then the second operarand row
is evaluated and this is the value that is returned, so the if statement you have there is equivalent to if ( row )
. Probably not what you intended.