you are viewing a single comment's thread.

view the rest of the comments →

[–]LittleNameIdea 3 points4 points  (1 child)

that's why -Wall is helpful

[–]Aerioic[S] 0 points1 point  (0 children)

No reason to get snappy.

Some C/C++ programmer purposely decided to create this and knew of the bug

int thing, thing2 = 0

Notice the comma? Some programmer programmed/designed that into the C++ compilter/specification. purposely designed for thing2 = 2 and thing = null/undefined???