Why does this C++ code compile? What does it do? -


this question has answer here:

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!

it "comma operator"

evaluates first operand , discards result, , evaluates second operand , returns value (and type).


Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

c# - must be a non-abstract type with a public parameterless constructor in redis -

ajax - PHP/JSON Login script (Twitter style) not setting sessions -