Hi guys! So I'm trying to run this program but I keep getting this error on the first statement and I just can't understand it. (sorry still a novice programmer)
here's what it says on my output.
I would really appreciate the help guys! :D
Would you like to take your BMI using Meters and Kilograms: y
Current language: auto; currently minimal
You need to pass the address of the variable in your scanf() call. Look at your other scanf() calls for hints.
Also, it's good practice to copy/paste your code, and not paste a screenshot. EXC_BAD_ACCESS is just Xcode's way of informing you that a SIGSEGV was raised during your program's execution, usually when memory is being accessed illegally. In this case, Jim is correct, you are not passing the pointer, so scanf is trying to write to the wrong memory, raising the signal.