Password strength detector in C doesn't work : <p>The password needs a letter and a number. Here's the code:</p>

<pre><code>#include &lt;ctype.h&gt;
int main()
{
    char password;

    printf("Please enter a password.\n");
    scanf("%c", &amp;password);

    if ((isalpha (password) &amp;&amp; isdigit(password))){
        printf("Your password is strong!\n");
    } else {
    printf("Your password is weak!");
    }
    return 0;
}
</code></pre>

<p>However, when I compile it, it always prints "Your password is weak" even when I type in both characters and numbers. What's wrong? </p>
