I am getting a segmentation fault in my C code when trying to read integer input from the user with the following functon:
int userChoice = 0, tS; float tR,
scanf("%d", userChoice);
=〉
scanf("%d", &userChoice);
Should be:
Need the ampersand to read it into the location of userChoice, and not the value of userChoice.