Always follow conventions

Consider the following code:

if you run it it will display:

The problem here is because we wrote by mistake an extra dash so instead of writing:

we wrote:

We didn’t get any compilation error because the compiler parsed it as a boolean expression:

Because we have a local variable ‘a’ and also a struct member we got this pitfall

 

Conclusion:

Follow conventions for declaring local variables and struct members (for example local with characters only and struct members begins with m_)