cybersecurity · beginner · ~15 min
Detect non-alphanumeric characters.
Implement int has_special(const char *pw) returning 1 if pw contains at least one character that is not a letter or digit, else 0.
int has_special(const char *pw) {
/* TODO */
return 0;
}
Solve this exercise in the browser editor — compile and run against the test harness, no setup required.