Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Noncompliant Code Example

This noncompliant code example uses an if-else statement without braces to authenticate a user.

Code Block
bgColor#ffcccc

int login;

if (invalid_login())
  login = 0;
else
  login = 1;