I'm new and I don't really know how to fix the error.
"First-chance exception at 0x6499E541 (msvcr120d.dll) in ConsoleApplication9.exe: 0xC0000005: Access violation writing location 0x00000000."
And it's happening at this point in the program
1 2
printf(" Please enter how many televisions you are buying as: ");
scanf_s("%d\n", TV);
The code up to that point is:
1 2 3 4 5 6 7 8 9 10
#include<stdio.h>
#include<stdlib.h>
//using F as a function of the set
void main()
{
int TV = 0, VCR = 0, Rmt = 0, CDP = 0, TR = 0;
float TVF, VCRF, RmtF, CDPF, TRF, Sub, Tax, Totes;