Versions Compared

Key

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

...

Code Block
bgColor#ffcccc
int privileges;

if (valid_login())
  printf("Login Successful\n");  /* debugging line added here */
  if (is_normal())               /* the following if-else clause is always evaluated with the assumption that the user is logged in, even if he is not! */
    privileges = NORMAL;
  else
    privileges = ADMINISTRATOR;

...