C programming issue
I am fairly knew to the scene of C programming and I am having trouble with something I am trying to do.
I have an char array which contains a binary value of the output of 5 sensors. i.e. 00111
What I want to do is create a state machine from this array. I have tried using a switch statment..
// do somehing
// do something else
but I get the error "switch expression has illegal type"
Can i convert the array to something else so I can use my case statement or is there a better method?