So how do I check the return value of scanf? Would I need to use %s or %1c instead of %i or is there something else I can do? I don't really care if I can't distinguish between a legitimate zero...
Type: Posts; User: Fdisk
So how do I check the return value of scanf? Would I need to use %s or %1c instead of %i or is there something else I can do? I don't really care if I can't distinguish between a legitimate zero...
I'm writing a program to work with complex numbers. It actually works well for what I need it for but there is a problem I would like to solve. Here is the code in question:
int option;
...
Hello! I recently started programming in C and right now I am programming a robot using a PIC32 microcontroller. There are six input sensors and right now I have separate variables set to each of...