I've been workin on the following program and could use a little help. The program should input a character from the keyboard and using isdigit, return wheter the character is a digit or not. The program compiles fine, but will not function. I get a program error and the window is closed. I also tried to input the character into the isdigit function as a pointer to character and that also would not work.

Code:
#include <stdio.h>
#include <ctype.h>

int main()
{
   int character;  /* Initializes character  */
 
   printf( "Enter a character: ");    /* Asks for character and inputs it */     
   scanf( "%d", character );

           /* This should determine if the character is a digit or not */
   printf( "%d%s", isdigit( character ) ?  "The character is a " : "The character is not a ", "digit." );   

   return 0;
}
Thanks!