Jan 13, 2012

"C" what I did there?

void passing_argument(int *something) {
  *something = 200;
}

int main(int argc, char *argv[]) {
  BOOL just_visiting = FALSE;

  int dollars_collected = 0;

  int *go = NULL, *something_else = &dollars_collected;
  passing_argument(something_else);
  if (dollars_collected == 200)
    goto jail;

  jail:
    if (just_visiting)
      return 0;
    while (1);

  return 0;
}

3 comments:

Disqus for freeSoftwareHacker();