Honestly, I've been taking C++ classes in my uni, but not only was it not interesting, but also iI didn't learn anything. I love these videos, I learn a lot and it's actually fun, Thank You!
@D_iv_ya4 жыл бұрын
Really ,fst time I enjoyed programming and felt it is interesting🤩😊😍
@chiragdevnani72834 жыл бұрын
Still a better suspense movie than Race 3 :p
@shambhunathpandey12624 жыл бұрын
😂
@gatecomputerscience14843 жыл бұрын
Chutkula...😂😂😂
@mateuszlukaszczyk53594 жыл бұрын
i felt for it, didn't know break is not a necessary thing. Always learning something from your videos! Cya
@RhaenyraT20017 ай бұрын
I love how he slowly explains the stupidity and we are still not able to catch it and try staring at the screen in a weird way. Love it.
@gatjuatwicteatriek4590 Жыл бұрын
I don’t know how much I can appreciate neso academy. This is the channel everyone should use and pass
@follow_anil2 жыл бұрын
Actually one mistake sir in code output please update eventually I'm learning lot of knowledge on this channel "Please Update" Thank u sir love u❤❤❤❤❤❤❤
@qandos-nour4 жыл бұрын
I fell in the trap XD thank you Neso
@raitup004 жыл бұрын
Yes, me too
@ledgerdavid34353 жыл бұрын
i dont mean to be offtopic but does any of you know a way to get back into an instagram account?? I somehow lost my password. I appreciate any tricks you can give me
@ledgerdavid34353 жыл бұрын
@Jose Zeke I really appreciate your reply. I found the site thru google and Im in the hacking process now. Takes a while so I will reply here later when my account password hopefully is recovered.
@ledgerdavid34353 жыл бұрын
@Jose Zeke it worked and I actually got access to my account again. I am so happy:D Thank you so much you really help me out :D
@josezeke88083 жыл бұрын
@Ledger David You are welcome xD
@hemanthkumar89633 жыл бұрын
Sir sir sir u are rocking sir !! Truly I fell in love with ur teaching sir❤️
@itbase25 жыл бұрын
such a grate imp of break
@apporvaarya5 жыл бұрын
Wow..your this series is amazing
@ChandanKumar-zl5jo2 жыл бұрын
You teach for engineering student for whatever you course taught to us like for jee main aspirants of alakh Pandey sir i always like such person.
@vikashmishra19034 жыл бұрын
Congratulations #neso_academy for 1M subscribers ❤️🎉
@ayushiydvKG11 ай бұрын
indeed incredible ques and even incredible u as a tutor. lots of love!!! 💌🙏
@parisahasani78803 жыл бұрын
I loved the way you teach and this "break" point, actually :D
@tayyab.sheikh Жыл бұрын
I guessed the answer right by pausing the video.
@praveenpatel99726 жыл бұрын
All lectures are superb. Please upload at least 5 videos daily on data structures and algorithms. Thank you.
@gatecomputerscience14843 жыл бұрын
Choti choti but moti bate, this the way to really teach the people's,sir well known where the students make the mistake
@Varian_t5 жыл бұрын
That was the epic twist🤪🤪
@otetumooluwaseun3948 Жыл бұрын
I got it this time around. I knew from the beginning that there is no break statement, so others get executed. I read that in "Head first with C" in the train exercise.
@meryemonzy85325 жыл бұрын
Woow thank you so much❤️❤️❤️
@anishkhadka925 Жыл бұрын
Awesome video 🥺
@rideaux8533 Жыл бұрын
nice problem, really enjoyed it
@salonichaurasia8852 жыл бұрын
Amazing,just wow!
@AshishAmbati2 ай бұрын
this is soo good, thank you
@Codality3 жыл бұрын
But let me tell my dear friends 😅👍 The best digital university in the world, thx again and again and again and again
@naurinsultana11664 жыл бұрын
yay finally could solve a problem correctly !!!
@rakeshkumarsingh62874 жыл бұрын
U solved it correctly??
@xiaoshan97223 жыл бұрын
correct again!! thanks Neso
@silasabel54322 жыл бұрын
Great content mahn🙌
@daverussell40523 жыл бұрын
since neso always trap me with this kind of question... i always try to think harder if the answer its way to obvious lol
@aravindks76364 жыл бұрын
Yea boyy..I make it correct on first
@sayanpradhan12363 жыл бұрын
very smart coding
@rakeshraj6886 жыл бұрын
nice one....
@rushikothari12614 жыл бұрын
Very Good Question
@sudarshan740 Жыл бұрын
Great😊
@arindamIT5 жыл бұрын
osadharon... Guru apni chilen kothay!!!
@prashantbhattarai37475 жыл бұрын
after 1st loop then on increment becomes 17...again all case shouldn't be executed? why only default is executed second time rather than there is no any break statement?
@mohamednaser60705 жыл бұрын
because in first loop when i = 0 we check the first case case 0 : is correct so we start this case and all cases after it but when i=17 non of the cases is true to start evaluated next cases so you go to default
@akshitarora4704 жыл бұрын
All cases only after a true cases get evaluated (in the case of no breaks applied! think of a car over speeding the moment a green light is seen.)
@venkythesmart4404 жыл бұрын
17 'th is not there in switch case. At that moment what can be excuted.
@hasanshaikh20144 жыл бұрын
because there is no case in which 17 is present as you know that we always compare with a case number that is the second time it goes to default case
@mohitbadal25773 жыл бұрын
Thanks a lot sir ji
@shreyatanku20354 жыл бұрын
Jesus I blindly thought it was first option btw i love these classes
@stevefox23184 жыл бұрын
Wow just amazing
@rutvikvaghadiya36593 жыл бұрын
Sir at 4:30 the other case also get evaluate d except 0 as there is no break. Why is not get evaluate d? Pls tell
@AM-qi3xy3 жыл бұрын
Why wouldn’t 17 get the same way of evaluation as the 0 in the first step , there is no break in these cases too , so we did mix the cases only once ?
@bhanu85433 жыл бұрын
Because 0 was Frist case and it was true then there is no break so remaining statements are also evaluated but 17 is flase for all cases they are no gona evaluated only default gets evaluated.
@shubhamjain1543 жыл бұрын
For the first time I've given right answer of the quiz....😂😂
@shreenathkv38793 жыл бұрын
I paused for almost 3 min the program looked flawless and then realised no break ; 😂😂😂😂
@TheSadhguruSense4 жыл бұрын
variables are not allowed in switch cases
@prodiptamondal17583 жыл бұрын
variables are not allowed in case label, it is allowed in switch label
@BulbulAhmmed-c9l Жыл бұрын
Sir I have a question. In the 2nd attempt why 17 is not match with case0,case1,case5 and directly go the default?
@chinthalasrujan37655 жыл бұрын
sir, but a case statement will get evaluated only when the value equals the case value only no sir then after case 0:,directly case 5: should get evaluated right,please clear my doubt
@vijaychaurasiya32275 жыл бұрын
If any one case is satisfied then all the cases below that case will be evaluated(if breaks are not given)
@vishallondhe72985 жыл бұрын
switch statement does the condition checking with case no but because after case 1 there is no condition checking like switch, all the other statement after it will get evaluated.
@khushalmalu70453 жыл бұрын
Sir I would like to tell no return 0; statement so no output 😮🤓
@The__kulkarni__284 жыл бұрын
sir,in your previous videos u asked us not to duplicate the cases.Then y did u repeat i+=5 for 2 times??
@karthikbs87494 жыл бұрын
You cannot duplicate the case labels. For example case 0: cannot be written two times but the expression i+=5 can be written any number of times. Hope this helps.
@KimTaehyung-ex3ts3 жыл бұрын
Sir plz upload python course after completing c I want to learn python from you only you plzzzzzz
@dalwindersingh94554 жыл бұрын
Nice explanation ,want to contact to learn c programming online thanks
@khushikesarwani19413 жыл бұрын
But, return 0 is not written there in the code for int main() !!!! Doesn't it have any value?
@santhiyakannan17614 жыл бұрын
Waiting for your python tutorial
@techadil58086 жыл бұрын
Thanks
@vdharman12726 жыл бұрын
Nice work
@true41894 жыл бұрын
Thank u
@sanyampandey38953 жыл бұрын
Correct Answer is c) Compilation Error "AS THERE IS NO RETURN 0 in the END of code" ;)
@AkshatJainSF6 жыл бұрын
Correct Answer is c)Compiler Error Since main() has int return type but return statment is not there.
@techadil58086 жыл бұрын
Right answer
@hariharans99776 жыл бұрын
Super bro..return statement is must on int main..
@sasishushma6 жыл бұрын
Usually if there is no return statement in international main() compiler won't through error but if return any value in void main() then compiler will through error
@chinthalasrujan37655 жыл бұрын
there is no need of any return type if nothing is mentioned it will return some value ,so no error
@seelammadhusagar41765 жыл бұрын
By default new compliers returns zero
@phanindrareddy48856 жыл бұрын
Complete very fastly sirrrr
@warmachine62048 ай бұрын
Hey there is a little bit error in your code with your code the output will be 22 but if we want output = 16 21 then the printf function need to write just after default not in the next curly braces ..Thanks me later
@dhiravagrawal34464 жыл бұрын
It is not necessary to return loop
@duconsao37683 жыл бұрын
3:59 can anybody explain for me why the output is not 5 11 16 21 but just 16 and 21
@andistheinforitbutso75133 жыл бұрын
Because there is no "break" after cases.
@Amena_Islam_Shrabony Жыл бұрын
i=21 how? Because i
@compangit15242 жыл бұрын
Comments for myself: Without breaks on all switch cases, then everything below a true case gets evaluated.
@shabeerkhan3795 жыл бұрын
Sir, initially the value of i=0 but when compare with switch (i)=switch (0) but every nonzero value is false,then that condition is fails,so the switch loop not executed right?? I think the value of i is printed that is 0 on the screen...is it correct sir?
@sravanakumar93265 жыл бұрын
0 will be treated as false only for conditional operators example: if , while.
@m.nikitha46704 жыл бұрын
sir if we write default statement at starting and then remaining cases subsequently will those cases get evaluated when i=17 i.e., { default:i+=4; case 0: i+=5; case 1: i+=2; case 5: i+=5; } printf("%d",i) now i got incremented and it is 17 now ...then after default will the remaining cases get evaluated or just default is evaluated.?
@shikhardhyani4 жыл бұрын
Try to code you will get answer yourself only.
@m.nikitha46704 жыл бұрын
ok
@sanyampandey38953 жыл бұрын
evaluate hua tha?
@sonubadaik50142 жыл бұрын
Yes, after getting 17 at default condition rest of the cases will get evaluated. So the final value of i will become 29.
@joelaropet Жыл бұрын
Tried running this code but it's giving me a result of 22. What could I have done wrong ?
@shalinityagi48294 жыл бұрын
My compiler is giving 22 as an answer ,can you please justify the same
@astro.shatha46684 жыл бұрын
I got the same answer , then I realized that I've missed those brackets '{}' after for loop
@IronMan_2.14 жыл бұрын
Holy mother of Jesus Christ, You got me there 😂😂😂😂
@GandrothulaAbhishek7773 жыл бұрын
Jesus Christ is the name of God. That is the highest name that a mortal tongue can speak. Don't use it for jokes. *Respect God* . And one more thing, don't talk like mother of Jesus Christ, He has no mother. He is The Son of God.
@abdulquadir41005 жыл бұрын
There is no return type here
@Shivam69985 жыл бұрын
Still wrong it will show compile error because return statement not written in program.
@bogdansikach77095 жыл бұрын
No, because the main function is special and at the end of it zero is returned automatically. Read more in the C99 standard.
@agnishgoswami38332 жыл бұрын
But My output is showing 22 only.??
@nihalpandey56754 жыл бұрын
Who did it at first attempt?
@abhishekthakur29334 жыл бұрын
I don't know but something is wrong in this code cause output is infinite times 24
@eeeitguy46553 жыл бұрын
why case 0,1,5 not evaluated in second time
@ENGCY-Mir3 жыл бұрын
because the condition does'nt satisfy
@iamDejaray13 жыл бұрын
Iwas caught in the trap of 'break'.
@nagarajat19956 жыл бұрын
👍
@samdavepollard4 жыл бұрын
Ouch. You got me. :-)
@vrishabshetty13255 жыл бұрын
U said default will only excute when no case r satisfied then i should be 13
@Krutarth_Vaishnav_5 жыл бұрын
You're Right But There Should Be Break Statement After Every Case Conditions.. Then I Would be 13 Else This is Right What We Shown in Video
@sawankumargope53994 жыл бұрын
😁😁😁😁
@umairalvi73826 жыл бұрын
Eazy peazy problems...
@davidnguyen71604 жыл бұрын
how you gonna do me like this?
@nandanupadhyay4936 Жыл бұрын
"It's a Trap" guys. I repeat "it's a Trap". 😂😂
@mayankkabra94203 жыл бұрын
My output is coming out as 491419
@mayankkabra94203 жыл бұрын
Anyone up for this?
@Ivan-Sholana3 жыл бұрын
first i'm confuse why 16 21, then I laugh about my confusing