Why do I get a SIGABRT?

scanf("%d",&A[length]);
This line is the problem. The address of pointer A is being tried over here.