falha de segmentação usando scanf com número inteiro
Estou recebendo uma falha de segmentação no meu código C ao tentar ler a entrada inteira do usuário com a seguinte função:
int userChoice = 0, tS;
float tR, tW, tP, aP;
char title[35], title2[35];
Book *curr;
while (userChoice != 9) {
printf("1. Determine and print total revenue\n");
printf("2. Determine and print total wholesale cost\n");
printf("3. Determine and print total profit\n");
printf("4. Determine and print total number of sales\n");
printf("5. Determine and print average profit per sale\n");
printf("6. Print book list\n");
printf("7. Add book\n");
printf("8. Delete book\n");
printf("9. Exit the program\n");
scanf("%d", userChoice);
...
...
Toda vez que executo meu programa, é possível inserir o número a ser atribuído ao userChoice, mas o seg falha imediatamente após. Qualquer ajuda? Obrigado!
Edit: O erro exato que eu estou recebendo i:
Program received signal SIGSEFV, Segmentaion fault.
0x0000003503256f50 in _IO_vfscanf_internal () from /lib64/libc.so.6