Skip to content

if (x) vs if (x != 0) #1006

@jwakely

Description

@jwakely

At the last editor's meeting we discussed whether we should explicitly recommend one of if (x) or if (x != 0)

The example of if (strcmp(...)) was mentioned as an interesting case.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions