rberek
Joined: 10 Jan 2005 Posts: 207 Location: Ottawa, Canada
|
|
Posted: Thu Apr 09, 2009 7:42 am |
|
|
Of course the problem is still the same. That's what we were discussing.
You've written code that will drop from case '1' to case '2' if y is anything other than 5. The break statement prevents fall through to the next case.
You should check out the links PCM Programmer provided, and/or get a decent C book.
r.b. |
|