DEV Community

loading...

Discussion on: Know more about if(x=y)

Collapse
pgradot profile image
Pierre Gradot

Never.

With g++, you get a warning with -Wall. See online.

warning: suggest parentheses around assignment used as truth value [-Wparentheses]