I've got a question
What shall happen if we have the following :
typedef enum {s1=0,s2,s3} states ;
void test( states x ) ;
when using the function test , what happens if I use it like the following :
test(6);
Shall it be mapped to the nearest enum value , or it needs to be handled in the function implementation ?