C Programming Tutorial 61 - How to Write a Switch Statement

preview_player
Показать описание


~~~~~~~~~~~~~~~ CONNECT ~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~ SUPPORT ME ~~~~~~~~~~~~~~

🅑 Bitcoin - 3HnF1SWTzo1dCU7RwFLhgk7SYiVfV37Pbq
🅔 Eth - 0x350139af84b60d075a3a0379716040b63f6D3853
Рекомендации по теме
Комментарии
Автор

Me: cramming for my C midterm the day before exam
My conscience: 3:16

kingofbirbs
Автор

Thank you for these videos, im taking a basic programming class and this helped me more

gelccc
Автор

Case 4: You're a disappointment😂. Lol had me in splits, this video is such a great one! 🖐❤

heretojustvibe
Автор

5.Write program that accepts monetary statement in digits and displays in words (in English) using a switch-case statement. (e.g. 10 : Ten Birr Only) do these assigment

HonelignAdissu
Автор

A Toshiba gaming laptop gets warm keys, but burns the gfx cards all the time.

mullervolker
Автор

I’m glad you finally circled back to using pizza as an example!

But in all seriousness, thanks again so much for making this wonderful tutorial series.

PunmasterSTP
Автор

Great video! By the way, can we use a double in a switch statement? I used a double inside the switch statement and it says: "Switch quantity not an integer."

ilhomsadriddinov
Автор

why does some switch statement has a space between the argument?

switch ('hello') {
case 1:
console.log(bla);
break;
}

switch('hello') {
case 1:
console.log(ble);
break;
}

which one is correct?

r
Автор

Can I have multiple inputs for the switch statement? If so how could I do so? For example in an if statement, I can say if (A==1 && B==2) {do something}, here for switch statement can I say switch (A && B) {case A==1, B==2: do something break; }. So on and so on. Thanks if anyone can tell me this

张昊宇-pe
Автор

thank you for the tutorial I very very berry like it. Thank you for helping me to do my experiments.Thank you so much.

tectic
Автор

can we add range to each of the cases ??? like case 1 80-90, case 2 70-79 ??

navvashisht
Автор

If your laptop gets hot enough the keyboard gets warm; sometimes it gets so warm the entire computer will combust. (This is usually not the case; but it’s still possible). So technically we do have heated keyboards

edgymarshmellow
Автор

how to resolve the issue of selection of an option when input is give using decimal number
for example when i input 2.555 or 2, 3 etc the program selects option 2

sjp
Автор

is it possible to indent functions into the switch statements such as case 1; void bla bla bla then so on

god-of-creation
Автор

is that intellij idea you using as IDE?

RemixCinematic
Автор

is it possible to indent the switch cases in main and indent different functions in them that have diffrerent functions in then like this


main _ switch case1 get water _get cup pour water case 2 get pizza eat pizza sleep case 3 sumin like this

god-of-creation
Автор

It seems like by taking out the break statements…you *broke* your code 😎

PunmasterSTP
Автор

I have a love hate relationship with Switch statements. I hate that they execute one expression or variable then maintains its result. While if statements can execute multiple expressions or results. I used a switch statement earlier in a program thinking I was all that but the result wasn't what I intended. Now I must use an if statement in its stead.

whathuh
Автор

Can we use logical conditions in the switch statements? if yes then how?

GalaxyCookies
Автор

Can you tell me what program/IDE you're using to code on?

taimurpathan