Confusion with commas in ternary expression – stackoverflow.com

I found the following interesting code today: SomeFunction(some_bool_variable ? 12.f, 50.f : 50.f, 12.f) I created a small sample to reproduce the behavior: class Vector3f { public: ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

0 Comment to "Confusion with commas in ternary expression – stackoverflow.com"