For the following code, I receive sig fault. Why? Thanks.
Code:
void test(int *i) {
  *i = 3; /* where the sig fault occurs */
}

int main() {
  int *p;
  test(p);
}
BTW, I'm using gcc 4.3.3 on Ubuntu 9.04.