17 - SWITCH CASE WITH EXAMPLE - C PROGRAMMING

  Рет қаралды 194,076

Sundeep Saradhi Kanthety

Sundeep Saradhi Kanthety

Күн бұрын

Switch case is known as Multi-Way Selection Statement having number of cases.

Пікірлер: 313
@vaskaran1
@vaskaran1 5 жыл бұрын
"Boost is the secret of energy" for cricketers. Ur lectures are the secret of my energy. Once again Thanks a lot Mr.Sundeep
@himanshu6910
@himanshu6910 4 жыл бұрын
Yes sir is teaching very nice
@Last_But_One_Bench
@Last_But_One_Bench Жыл бұрын
@@himanshu6910 thanks namasty
@Kleemkrom
@Kleemkrom 4 жыл бұрын
Among all the c language lecture available in youTube, your way to teach very simple , clear and crisp. That your uniqueness. /* Simple english too*/
@bestyav5529
@bestyav5529 6 жыл бұрын
sir I wish I had discovered your videos since...I will send the link to my Teacher so that she will also learn instead of messing up with students' brain .
@sundeepsaradhi
@sundeepsaradhi 6 жыл бұрын
hi thanks for your interest towards our channel and share my sessions with your friends and subscribe to our channel.Keep following our channel.
@frontback4574
@frontback4574 4 жыл бұрын
Switch case chapter was very hard for me but after watching your lecture it's on my finger tips 😍😍
@preetinder2954
@preetinder2954 5 жыл бұрын
At the starting of your every video you show animation that some birds are flying in sky but they suddenly attract toward computer and then come out from this bonding any fly as they previous do. when ever I see this I realise my life "I fly in the sky of life with unawareness without setting any gole, dream, but suddenly I see computer world and i don't know when my feathers turned toward that direction,from that day I constantly went that path without know the nature of that path, but i constantly running ahead without fear because such a kind hearted persons like you are still in world , which share there knowledge with us.VERY GOOD SIR , CARRY ON AND WILL NOT STOP.
@dreamvallyhasan4807
@dreamvallyhasan4807 6 жыл бұрын
ur teaching is too good....Salute
@sundeepsaradhi
@sundeepsaradhi 6 жыл бұрын
Hi dream vally Hasan thank you for your interest towards our channel
@satishm1139
@satishm1139 6 жыл бұрын
Sundeep Saradhi 1
@himanshu6910
@himanshu6910 4 жыл бұрын
Yes sir is really teaching good
@yashgupta4698
@yashgupta4698 6 жыл бұрын
Excellent experience I have in studying computer in your channel means. ...OUTSTANDING WAY OF TEACHING. 😊
@abhimusic9178
@abhimusic9178 4 жыл бұрын
Sir Maine jb bhi koi c language ka topic padhne ke liye KZbin pe search kiya phir bht sare videos pr sbse agr m kisi se satisfy hua wo ap h sir thanku sir of deep of my ❤️
@priyasrivastava7466
@priyasrivastava7466 5 жыл бұрын
You teach so well sir, I understood things so well.. 😊 Thankyou so much.. 😊
@user-jk5rr3vc3v
@user-jk5rr3vc3v 3 жыл бұрын
My teacher took 1 year to teach me this which I learned in 2 hours, thanks to your videos.
@madhumohan453
@madhumohan453 5 жыл бұрын
simple explanation about the topic and it is easy to understand me . thank you.
@tausifahmad2007
@tausifahmad2007 5 жыл бұрын
thanks sir ur way of explanation is very interesting... initially i think i will never learn c language but after watching ur few videos i feel it's quite easy.. once again thanks.. and keep it up
@vamshi5628
@vamshi5628 3 жыл бұрын
sir whether you read all the comments are not we don't no but, YOUR'S EXPLANATION IS SIMPLY SUPERB SIR
@gurmeetsingh598
@gurmeetsingh598 2 жыл бұрын
yr ye bdhyaaa sir sir h jo b sub padhate h ekdm mst mja aa jata h bhaiii................salute 2 u sirr..........
@tartaric2040
@tartaric2040 5 жыл бұрын
Complete tutorial, covers all about switch case. Nice job.
@thebongpetuk9910
@thebongpetuk9910 4 жыл бұрын
Sir glad to have you , it really helped me a lot !💥
@subikshasubiksha1935
@subikshasubiksha1935 3 жыл бұрын
I really very interested to see ur channel contents, great job sir👍
@motupangmo4255
@motupangmo4255 5 жыл бұрын
Thank you sir..... You cleared all the doubts about switch case... thank you so much..
@ramuganesan
@ramuganesan 4 жыл бұрын
your teaching style is excellent. you are giving us all details related to that section...you do not give me any room to ask you question...
@sunnybunnyfacepainting1415
@sunnybunnyfacepainting1415 6 жыл бұрын
Thank you so much for your lecture. You are amazing!!!! I wish my prof learn from you lol. You are way better!!
@yashodapathak8259
@yashodapathak8259 4 жыл бұрын
Thank you sir for giving us this video.Your method to teach very easy and clear.
@anokhautomation4453
@anokhautomation4453 3 жыл бұрын
Sir you forget to write - int n; /*declare the variable*/ I understand the logic very well .thanks for your deep explanation.
@Prakash-hf7qp
@Prakash-hf7qp 5 жыл бұрын
very good explanation with all tips...Thank you..
@deekshithak4640
@deekshithak4640 6 жыл бұрын
Ur lecture is so good sir.Can u plz explain how to execute program of displaying output in words when any number say 75 is given as input using switch sir??😊
@LaasyaSri_Bijjala
@LaasyaSri_Bijjala 3 жыл бұрын
@@wisdom421 how it will be possible
@LaasyaSri_Bijjala
@LaasyaSri_Bijjala 3 жыл бұрын
@@wisdom421 if n value is 75 and we can take as many cases we wanted to then we can take 75 cases aa
@LaasyaSri_Bijjala
@LaasyaSri_Bijjala 3 жыл бұрын
@@wisdom421 if s then what is the case where we have default case
@srujankeerthi2289
@srujankeerthi2289 3 жыл бұрын
Sir, please explain including header files. It would be helpful and your teaching is awesome.
@veerankilavanya6313
@veerankilavanya6313 6 жыл бұрын
ur teaching way is very clear.. plz upload videos about c++
@sundeepsaradhi
@sundeepsaradhi 6 жыл бұрын
thank you lavanya and once i complete the C language i will try to upload
@sundeepsaradhi
@sundeepsaradhi 6 жыл бұрын
hi lavanya i would like to have a FEEDBACK ( in the form of video not more than 15 sec) from you towards our channel and my sessions.so that i will collect feedbacks from all and will upload in youtube, Send your valuable FEEDBACK to my WhatsApp number : +91 9885466061 (91 is the country code) waiting for your valuable feedback. kzbin.info SO MAKE A VIDEO WITH FEEDBACK ON OUR CHANNEL AND SEND AS SOON AS POSSIBLE
@akbarshaik276
@akbarshaik276 4 жыл бұрын
Excellent sir👏👏👏
@hassanjaved3209
@hassanjaved3209 7 жыл бұрын
sir your teaching method is so good i became very impressed
@sundeepsaradhi
@sundeepsaradhi 7 жыл бұрын
hi hassan thanks for your interest towards our channel.
@sundeepsaradhi
@sundeepsaradhi 6 жыл бұрын
hi HASSAN i would like to have a FEEDBACK ( in the form of video not more than 15 sec) from you towards our channel and my sessions.so that i will collect feedbacks from all and will upload in youtube, Send your valuable FEEDBACK to my WhatsApp number : +91 9885466061 (91 is the country code) waiting for your valuable feedback. kzbin.info SO MAKE A VIDEO WITH FEEDBACK ON OUR CHANNEL AND SEND AS SOON AS POSSIBLE
@chprashanth6750
@chprashanth6750 4 жыл бұрын
crystal clear sir your are a good teacher . thank you sir
@himanshu6910
@himanshu6910 4 жыл бұрын
For more videos you can watch c programming basic lecture on my channel
@abhijitshirwal
@abhijitshirwal 3 жыл бұрын
Understood sir. You teach very nicely😊
@naveen1638
@naveen1638 2 жыл бұрын
Sir your teaching is awesome sir but can you give another example for switch case
@MK-gr4ue
@MK-gr4ue 6 жыл бұрын
Thank u 4 ur teaching... I'm sure I will get good marks for my exams.....
@sundeepsaradhi
@sundeepsaradhi 6 жыл бұрын
hi megha thanks for watching my sessions. Thanks for your interest and support towards our channel. Keep following our channel.
@parveenr7102
@parveenr7102 3 жыл бұрын
Omg god send a good lecturer 🙌
@ravisingam1158
@ravisingam1158 2 жыл бұрын
Its very easy when you teach..✨🤗
@mymomcmds5698
@mymomcmds5698 4 жыл бұрын
I am watching Ur video it is really good and best thanks I will share
@AdanJelle-wt4zu
@AdanJelle-wt4zu 6 ай бұрын
Thank you so much you deserve more than likes nd subscribes❤❤❤
@harshithav4599
@harshithav4599 4 жыл бұрын
Good teaching sir, simple and perfect
@ankitchouhan4031
@ankitchouhan4031 5 жыл бұрын
Our spa mam is literally very boring ...... But ur very aweeeesomeee👏✊👍..... U explain things brilliantlyyyyy.....
@viramja4500
@viramja4500 3 жыл бұрын
Thank you sir for this vedio without taking any course fee like other.
@littlethings8067
@littlethings8067 5 жыл бұрын
Great going🤩
@akhileshpathi6509
@akhileshpathi6509 3 жыл бұрын
sup teaching i can easy understand sir. tq
@tizingworld
@tizingworld 4 жыл бұрын
Great tutoring. Thanks. Making sense to me now.
@ladywozniak8665
@ladywozniak8665 3 жыл бұрын
I’ve fallen in love with this man
@vaibhavkharade5796
@vaibhavkharade5796 7 жыл бұрын
Sir the way u teach is damn gudddd.......i foud it more comfortable ...keep going sir ...
@sundeepsaradhi
@sundeepsaradhi 7 жыл бұрын
Hi Vaibhav Kharade thank you for your interest what's your channel subscribe to my channel share my videos to your friends and thanks for supporting me
@vaibhavkharade5796
@vaibhavkharade5796 7 жыл бұрын
sir have u uploded the video on pointers .. m unable to find it.. can u plss send me the link..
@sundeepsaradhi
@sundeepsaradhi 7 жыл бұрын
hi vaibhav no i didnt upload the pointers video and soon i will do that. thanks for following my sessions.
@SathishKumar-pk3iu
@SathishKumar-pk3iu 5 жыл бұрын
Ur teaching is marvelous
@preetiprasad3933
@preetiprasad3933 5 жыл бұрын
Thank you sir for the amazing videos and explantions.
@LakshyaJain533
@LakshyaJain533 5 жыл бұрын
in the second example of switch i think you forgot to add a printf() statement for entering the operater (at run time)
@LeonardPonje-wg7ye
@LeonardPonje-wg7ye Жыл бұрын
Why have you used both int keyword and char keyword in the same program.Maybe there is no any penalties to do so
@-Vineethakotipalli
@-Vineethakotipalli 4 жыл бұрын
U r teaching is too good sir tnqq so much for u r explanation
@antonynixon7295
@antonynixon7295 2 жыл бұрын
thankyou sir, without your class i would have got supply in cp
@dmvlogs5566
@dmvlogs5566 4 жыл бұрын
Great discussion sir🙏🙏
@sirjanrijal5242
@sirjanrijal5242 6 жыл бұрын
I was confused in the decision making statement in c by watching your videos i am able to understand this but i am little confused in loop(increment and decrement) pls explain clearly about it with certain examples big respect from#Nepal
@sundeepsaradhi
@sundeepsaradhi 6 жыл бұрын
hi sirjan thanks for your interest towards our channel and watching my sessions.
@sirjanrijal5242
@sirjanrijal5242 6 жыл бұрын
Sundeep Saradhi welcome bro..I hope you will work on my problems..
@sundeepsaradhi
@sundeepsaradhi 6 жыл бұрын
Sure Sirjan Rijal I will try to do that
@Sadistic_Sir
@Sadistic_Sir 4 жыл бұрын
U teach really clear and simple Thanks a lot Sir... :)
@chethanajain3006
@chethanajain3006 4 жыл бұрын
Your explanation is very good sir
@emmettteddyguah2026
@emmettteddyguah2026 2 жыл бұрын
thanks sir, you teach switch statement very simple
@saxenaarnav2001
@saxenaarnav2001 5 жыл бұрын
nice now you are my senpai from now on
@kumarspandan5991
@kumarspandan5991 3 жыл бұрын
How will the compiler know 1 is Sunday 2 is Monday and so on ? We haven't mentioned anything there.
@iamsharmaG
@iamsharmaG 6 жыл бұрын
Your teaching is too good sir. i had a doubt... if we have a huge range of values for eg: if the values start from 121 and end at 200 then should we keep on writing switch statement for each number???? or could it be made simplier by any other way???
@sundeepsaradhi
@sundeepsaradhi 6 жыл бұрын
hi shruti depends on logic we can reduce the case labels and if you had any problem statement related to your doubt post it so that i will try to give solution.
@iamsharmaG
@iamsharmaG 6 жыл бұрын
Sundeep Saradhi sir the problem statement is that blood sugar versus insulin dosage. For eg: 121-140(blood sugar) for this the corresponding insulin dosage should be 5.3 - 7.4 (insulin dose) .Like for 121 I shud get value as 5.3 and for 122 I shud get 5.4.......So on lastly for 140 I shud get 7.4 as output value........Like this I have values from 121 to 244.. how should I execute this in a simpler manner???? Could u please help me out sir?
@sundeepsaradhi
@sundeepsaradhi 6 жыл бұрын
Hi shruti sharma for the given problem statement no need to use switch statement just use the given below condition Read the blood sugar value to x and apply the simple logic If(x>120 && x
@iamsharmaG
@iamsharmaG 6 жыл бұрын
Sundeep Saradhi Thanku so much sir😊😊! Ya my doubt is cleared. Your way of teaching was too helpful to me.
@sundeepsaradhi
@sundeepsaradhi 6 жыл бұрын
shruti sharma if you like my sessions share my sessions with your friends and subscribe to my channel.
@senalisiriwardhana9216
@senalisiriwardhana9216 6 жыл бұрын
Thank u for this task... Your teaching is best.. Thank u very much sir..
@sundeepsaradhi
@sundeepsaradhi 6 жыл бұрын
hi thanks for your interest towards our channel and share my sessions with your friends and subscribe to our channel.Keep following our channel.
@rumishruu7394
@rumishruu7394 5 жыл бұрын
Your teaching is fabulous
@bizay1982
@bizay1982 6 жыл бұрын
/// A programme to calculate the area or perimeter of rectangle/// #include #include int main(){ char choice; float Length ,Breadth ,Area ,Perimeter; printf("Enter the value of length and breadth "); scanf("%f %f",&Length ,&Breadth); printf("Input A to calculate area "); printf("Input P to calculate perimeter "); scanf("%c", &choice); switch(choice){ case'A': case 'a': Area=Length*Breadth; printf("The area of the rectangle is %f", Area); break; case 'P': case 'p': Perimeter=2*(Length+Breadth); printf("The perimeter of the rectangle is %f",&Perimeter); break; default: printf("Invalid"); } } Q. Sir this programme is compiling but is not running. please help me find the mistake.
@govardhanmv8767
@govardhanmv8767 7 жыл бұрын
Ur way of teaching is nice
@sundeepsaradhi
@sundeepsaradhi 7 жыл бұрын
hi govardhan thanks for your complement and thanks for your interest towards our channel. if you like my videos do subscribe to my channel and share my sessions with your friends.
@ajayraju999
@ajayraju999 5 жыл бұрын
sir your teaching is awsome and helpfull to me but maintain some smile on your face in between you teach it looks good im not judging you can take its ascompliment.
@mohitlunia5901
@mohitlunia5901 4 жыл бұрын
tou teach in a very beautiful way #goodjobdone
@harshpandey5377
@harshpandey5377 4 жыл бұрын
Sir is their any need to apply break after default
@sundeepsaradhi
@sundeepsaradhi 4 жыл бұрын
Hi If you write default at the last then no need of break If you re writing break before any cases then you have to write break otherwise all the statements will be executed until control reaches to break. Hope your doubt has been clarified. Thanks for your support towards our channel
@khushipatel9063
@khushipatel9063 4 жыл бұрын
thankyu so much sir for this really easy way to teach a student ….
@himanshu6910
@himanshu6910 4 жыл бұрын
Sir is teaching nice ....you can refer to my channel for more c programming tutorial
@varthyalaxman9311
@varthyalaxman9311 4 жыл бұрын
Ur teaching is nice sir I understood very well sir tqsm
@arsharavi2023
@arsharavi2023 5 жыл бұрын
As usual....it was really a superb one sir..thnkz a lot😇😇
@piyushabrol4130
@piyushabrol4130 6 жыл бұрын
Really good sir.... Understood nicely
@sundeepsaradhi
@sundeepsaradhi 6 жыл бұрын
hi piyush thanks for your interest towards our channel and keep on following our channel.
@satyanarendrakumar4738
@satyanarendrakumar4738 4 жыл бұрын
Sir really pleasant teaching is experienced by us thank you sir
@noorishaikh3804
@noorishaikh3804 5 жыл бұрын
Wow Sir nice
@Mr.sanjay.balayya
@Mr.sanjay.balayya 3 жыл бұрын
expalin about swith statement ? what is important break in swith statement?give example matter kodda petandi sir❤️
@ayushuprety5676
@ayushuprety5676 6 жыл бұрын
Sir why have not you declared variable a and b in switch case.How is the computer supposed to understand it data type?
@pyrecruitment
@pyrecruitment 6 жыл бұрын
Sir we should not use break for default block. Am i crt? ?
@mohammedhamdaanv.g.2226
@mohammedhamdaanv.g.2226 Жыл бұрын
Thank you sir I have no words to say My exam has gone well because of you sir thank you sir ...... thank you at the last movement you helped me cleared all my doubts and you are great sir and once again thank you air you are the best ........ thank you 😊soo much
@gerardjagroo
@gerardjagroo 5 жыл бұрын
Thank you so very much for your dedication, programming guruji
@souhardyahalder3903
@souhardyahalder3903 4 жыл бұрын
when n=2,why all the other cases will be excecuted?shouldn't it ignore the remaining cases as it ignored the case 1??
@shreya_sengarr
@shreya_sengarr 4 жыл бұрын
Do we not need to declare the variable c in the last example?
@aravindganji1685
@aravindganji1685 5 жыл бұрын
Sir, in the last programme of operator. U used c to scanf op, again used c as c=a+b and so on. Y
@Francisfravin
@Francisfravin 6 жыл бұрын
Thank you sir for sharing your knowledge ........ great job....
@sundeepsaradhi
@sundeepsaradhi 6 жыл бұрын
hi Francis thanks for your interest towards our channel and share my sessions with your friends and subscribe to our channel.Keep following our channel.
@arvindcharan1348
@arvindcharan1348 5 жыл бұрын
Sir is this switch default or break please tell
@sagarpantvlogs4837
@sagarpantvlogs4837 4 жыл бұрын
what if there is no integer value.. i mean what is there is float value?
@sowmya9042
@sowmya9042 2 жыл бұрын
The case statements executes only if the switch expression is true,then is it matter to use break . Because to execute the next case ,the condition is not true,then how can be the next case statements execute when there is no break
@sundeepsaradhi
@sundeepsaradhi 2 жыл бұрын
Because of sequential execution
@sowmya9042
@sowmya9042 2 жыл бұрын
@@sundeepsaradhi if the switch expression is false ,how it can be executed
@lagududevivaraprasad5418
@lagududevivaraprasad5418 6 жыл бұрын
you explanation helped me a lot.Thankyou
@sundeepsaradhi
@sundeepsaradhi 6 жыл бұрын
hi prasad thanks for watching my session and interest towards our channel.
@AbhinavKumar-ry7oe
@AbhinavKumar-ry7oe 6 жыл бұрын
Sir in the calculater program, the output is not coming.i do as it is as u do.but the output is not coming.the output shows that the enter the number but when i enter the number the default statement is coming.so pls help me to shortout this problem.
@shanmukharao9101
@shanmukharao9101 4 жыл бұрын
can u tell the example of switch case using the character? it will be clearly understood.
@ambativenkatalaxmi9797
@ambativenkatalaxmi9797 2 жыл бұрын
Super sir
@jayakrishna9864
@jayakrishna9864 4 жыл бұрын
In the 2nd example of switch program .. there is a mistake looks like. I am unable to print output while I am trying to use that code.
@sinank4468
@sinank4468 2 жыл бұрын
Thanku sir....Excellent cls🥰
@avijitdeb
@avijitdeb 4 жыл бұрын
Without using "while" & "do while" loop can we able to find LCM any other keyword?
@beleteashenef2369
@beleteashenef2369 2 жыл бұрын
You are a best of best.
@karangarg6702
@karangarg6702 5 жыл бұрын
Sir video is very very helpful👌👌👌....thanks sir😊😊
@amithajare3619
@amithajare3619 4 жыл бұрын
Sir output not coming. Direct goes to default case.... Sir you will create the output
@chaitanyaharsha4211
@chaitanyaharsha4211 6 жыл бұрын
sir ur teaching is good. please keep while,dowhile statements
@sundeepsaradhi
@sundeepsaradhi 6 жыл бұрын
hi harsha thanks for your interest towards our channel and share my sessions with your friends and subscribe to our channel.Keep following our channel. kzbin.info/www/bejne/rIHJpmiijdN4opo
@tit4tat914
@tit4tat914 5 жыл бұрын
sir, can we use a string as the input of switch? please reply
@sundeepsaradhi
@sundeepsaradhi 5 жыл бұрын
Hi Switch will accept only characters or integers but not strings and float values.
@tit4tat914
@tit4tat914 5 жыл бұрын
@@sundeepsaradhi okay sir. Thankyou for replying. I am interested to make a search engine using switch statements in c++. Can you recommend me something which I can add in my program?
@nishanthandge5192
@nishanthandge5192 6 жыл бұрын
Great work SIR
@pankajavallidharmalingam4580
@pankajavallidharmalingam4580 6 жыл бұрын
Sir what does this mean: Case 1: Case 2:++a; break;
@mythilivenu4355
@mythilivenu4355 5 жыл бұрын
a will be increment
@kalyandasareddy5972
@kalyandasareddy5972 3 жыл бұрын
Sir, Is there any advantage of using Switch Case Rather than using if else if
@sayankumardey8497
@sayankumardey8497 4 жыл бұрын
Sir in case '+'.....is it necessary to put single inverted commas upon plus character or it can be run on case + ?.....sir please answer
@bharthirao5732
@bharthirao5732 Жыл бұрын
sir how to calculate area of rectangle,square,circle and triangle using switch case?
18 - ITERATIVE STATEMENTS PART-1 - C PROGRAMMING
26:04
Sundeep Saradhi Kanthety
Рет қаралды 119 М.
54 - FUNCTIONS - C PROGRAMMING
37:03
Sundeep Saradhi Kanthety
Рет қаралды 361 М.
Bike vs Super Bike Fast Challenge
00:30
Russo
Рет қаралды 23 МЛН
Running With Bigger And Bigger Feastables
00:17
MrBeast
Рет қаралды 212 МЛН
33 - ONE DIMENSIONAL ARRAYS DECLARATION, INITIALIZATION AND ACCESSING - C PROGRAMMING
41:34
19 - ITERATIVE STATEMENTS PART-2 - C PROGRAMMING
15:26
Sundeep Saradhi Kanthety
Рет қаралды 47 М.
15 - DECISION CONTROL STATEMENTS - C PROGRAMMING
28:55
Sundeep Saradhi Kanthety
Рет қаралды 235 М.
21 - FIBONACCI SERIES - C PROGRAMMING
10:07
Sundeep Saradhi Kanthety
Рет қаралды 110 М.
66 - ARRAYS OF STRUCTURES - C PROGRAMMING
12:02
Sundeep Saradhi Kanthety
Рет қаралды 73 М.
55 - CATEGORIES OF FUNCTION DEFINITIONS - C PROGRAMMING
20:12
Sundeep Saradhi Kanthety
Рет қаралды 91 М.
01 - VARIABLES & CONSTANTS in C PROGRAMMING
15:02
Sundeep Saradhi Kanthety
Рет қаралды 231 М.
56 - CALL BY VALUE & CALL BY REFERENCE (PARAMETER PASSING TECHNIQUES) - C PROGRAMMING
25:51
20 - FACTORIAL PROGRAM - C PROGRAMMING
13:31
Sundeep Saradhi Kanthety
Рет қаралды 79 М.