I am having trouble with multiple chars and scanf_s() [duplicate]
问题 This question already has answers here : Reading a character with scanf_s (3 answers) Closed 8 months ago . I'm trying to use scanf_s() to read in multiple values but every time I run the program, I get Unhandled exception at 0x592AD6AC (msvcr120d.dll) in lab 2.exe: 0xC0000005: Access violation writing location 0x00000000. in a popup window. How do I fix this? float inTemp; char inUnit; char outUnit; printf("Please enter the starting temperature with its units and the units\nyou would like to