switch in c language.
is it possible to connect two switch statements in c language ?
if i have
case 1 : ....
case 2 :.... etc.}
case 1 : 00:00
case 2 : 15:00 etc... }
is it possible to connect them afterwards and give a combination of them two ?
You'll have to explain what you mean by "connect them". Just exactly what do you intend?
In a general sense, yes, Switch statement can be chained, similar to if statements. However, Switch is an elegant way to handle a lot of if statements, so if you need to chain a switch statement one wonders if you are actually doing the logic "efficiently".
by Naveed Ahmed 3 years ago
What is the difference between using "Continue" and "Break" statements in C Programming?The "continue" statement as I know skips execution of the rest of the code in the loop and so does the "break" statement. So what is the purpose of "continue"...
by JOC 7 months ago
'I would love to sit down and talk to Mueller under oath.'or'I believe I would have run into there, even if I didn't have a weapon.'
by Sima Ballinger 3 months ago
Give me an example of, "Where there is a will, there is a way." What does this statement mean.
by Cecilia 4 years ago
So any of you watched the new episode of Cosmos. ...It is encouraging doubt as a contrast to faith. It's not overly atheist sounding but it took a little knife, jabbed it into the three great religions foundational doctrine which is "faith" and twisted it ever so gently.
|HubPages Device ID|
|Login||This is necessary to sign in to the HubPages Service.|
|HubPages Google Analytics|
|HubPages Traffic Pixel|
|Google Hosted Libraries|
|Google AdSense Host API|
|Conversion Tracking Pixels|
|Author Google Analytics|
|Amazon Tracking Pixel|