Case function in C
Go to solution
Solved by Moonzy,
case (argument): things to do until break;
ie.
case a<b : print out "hello"; break;
so in your example, you're comparing variable 'y' to see if it's an character 'A', 'B', 'C', 'D', or 'F', you're not comparing it to see if the value is larger or smaller than certain things.
as for the rest of your program, no idea
-
Topics
-
0
-
4
-
lexiq ·
Posted in CPUs, Motherboards, and Memory2 -
Onions ·
Posted in Linux, macOS and Everything Not-Windows2 -
1
-
SyndiShanX ·
Posted in Audio8 -
Nexxus ·
Posted in Programs, Apps and Websites3 -
ds5018 ·
Posted in Troubleshooting5 -
5
-
Muzzy2002 ·
Posted in New Builds and Planning5
-
-
play_circle_filled
Latest From Linus Tech Tips:
The BRIGHTEST Monitor We've EVER Seen - Sun Vision rE rLCD Display
-
play_circle_filled
Latest From ShortCircuit:
The World's Fastest CPU (Technically...) - Intel i9-14900KS
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now