What you read into with scanf must be an address(pointer). The scanf function must know where to store the data it will be reading/converting. Whether or not that means you use the address-of...
Type: Posts; User: hk_mp5kpdw
What you read into with scanf must be an address(pointer). The scanf function must know where to store the data it will be reading/converting. Whether or not that means you use the address-of...
That's likely caused by the "warnings" already mentioned by ledow:
You need to store data to a location (a pointer) when using scanf. As an example, this:
scanf("%lf",degree);
...needs to...