help - Undefined behavior

Hi ! help please .

if((result = f()) == 0) { ... }

is Undefined behavior ?

It depends on factors that your example does not describe.
For example, if f() does not return a value, then it is
undefined behavior.
--paulr