Why does this C++ code compile? What does it do? -
this question has answer here:
- uses of c comma operator [duplicate] 20 answers
i had problem when accidentally deleted method name. code went from
bool bret = methodname(pdata, poutfilename);
to
bool bret = (pdata, poutfilename);
but still compiled? code do? mean? seems return true, case (even if pdata null)?
any ideas welcome!
evaluates first operand , discards result, , evaluates second operand , returns value (and type).
Comments
Post a Comment