I was trying to debug my C code on VS 2019 and this came up on the debugger: Exception thrown at 0x7A4A98F1 (ucrtbased.dll) in file.exe: 0xC0000005: Access violation writing location 0x00321348. occurred. below is the line of code which was giving me problems. This runs on codelite but not on VS.
scanf_s(" %c%c%c", &input1, &input2, &input3);
User contributions licensed under CC BY-SA 3.0