Hi, This program for some reason generates errors..........why? But when i used a variable as a 'middle-person' to assign the input to it first then assighn the input to the structure member and printing it it's ok. Why ?

thnx

Code:
#include <stdio.h>

struct integer {
   char c;
   short s;
   int i;
   long b;
};

int main()
{
   struct integer number;

   scanf( "%d", number.i );
   printf( "%d", number.i );

   system("PAUSE");
   return 0;
}