Lec 24: C++ Control Structures - part4 | Nested if and Nested if else | C++ Tutorials for Beginners

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

******************************************
GATE CS All India Scholarship Test Link:
*********************************

Connect & Contact Me:

**********************************

More Playlists:

#ifelse #cplusplus #jennyslectures
Рекомендации по теме
Комментарии
Автор

i was having a very hard time to understand the concept of nested-if and nested -if-else, thanks a lot mam due to your efforts a lot of students are getting possibly the best education in free. Mam you are a hero.

kuramatv
Автор

Ma'am MARK MY WORDS, In my Academic life, have seen only two teachers who knows what teaching is !! takes us from scratch to advance in such a crystal clear way, ma'am one is you other is Alakh Pandey sir (PHYSICS WALLAH now UNICORN STARTUP), studied from him without coaching cleared jee mains , now I got you !! the same style and everything, ! Yes ma'am I know its really challenging to handle family kids and passion simultaneously, but one day you will shine, also want to tell one thing, in the beginning when you promote unacademy, I find it too funny, who will go to them after studying from you, you are just way better, I had their subscription, but I am here !!! Ma'am we will keep hustling with you, I know within year or two you will be a shark of this industry, just don't join any channel, even they offer you crore, your worth is in billion, many students can't affords 20k to your free contents especially in such a way of teaching will surely bring colours to your life !!!! ALL THE BEST, WE LOVE YOUR TEACHING

hopealive
Автор

Ma'am please Start JAVA parallelly, my college has started JAVA, one can't study from other teacher once they get the habit of understanding concepts in such a crystal clear way !!! PLEASE MA'am consider my request !!!!

hopealive
Автор

Your an fabulous lecturer and your a god gifted teacher that we got, But mam you deserve more and more appreciation and your position must be vere level

Mamatha-gq
Автор

👌👌""ना सफर डरता है, ना सफर थकता हैं।ये खौफ है मुकाम का सारी रात जगाता हैं।""👌👌

priya-wehg
Автор

Ma'am plzzz request hai aapse thoda jaldi videos upload kra kro ...Because you are the only one youtuber who explain all the concepts clearly ...

mr.yashff
Автор

what a great way of teaching each and everything is cleared about the course really love your way of really pray for your happiness and good

rizmirza
Автор

Ek hi dil hai mam
Kitni bar dhadna band karonge😍

gautamlandage
Автор

For nested loops, the outer if conditions do NOT have to be true when the inner loop has control, it just HAD to have been true when evaluated. For example, if Rand100() is a function that returns a random integer from 1 to 100 inclusive and I have a statement such as if (Rand100() = 50) then if some other condition <cond2>. If we get to the <cond2> part, that does NOT mean than Rand100() is still 50. It could have easily changed. Many other functions can change too after being called so it is incorrect to say what you said.

An even simpler example to illustrate my point is this code:

if (<condition1>) {
condition1 = false;
if (<condition2>) {
<more code goes here>
}
}

Here if we get to the inner if, condition1 is already false, not true like you said in your lecture. Your statement assumes the programmer will not change the value before entering the inner nested if, which is perfectly allowed. For example, suppose the outer condition is checking some flag and if it is set (true), we know we need to reset (make it false) right away so we don't forget. That is good programming since resetting it many lines below might not be as clear to read in the code.

If I was giving a lecture like this, I would tell the student when to use nested ifs vs. just putting all the conditions to check in one if statement. For example, if I was a beginning programmer (which I am not), one of my questions would be why use 3 if statements and clutter things up when you can do it with just 1 if statement? For example, if and (apples_are_available) and (apple_quality_appears_good) then <buy some apples> endif. Also, if the compiler provides short circuiting of these types of statements (that is, it "gives up" evaluating them after the first false one), then nesting if statements checking for one condition per if statement is likely to have no speed of execution benefit.

Also, it is bad programming practice to use nested if statements when you could instead use a case, switch... type statement which is almost always easier to read...

I am not impressed with this lecture. I think it creates (or would create) unnecessary confusion for junior programmers. Downvoted.

davidjames
Автор

Maim you r good teaching but u you have very intelligent and good communication skill english after that thanks so much maim

ahmadshafique
Автор

Please do practical using complier
Please
Hint like who feel same

vasanthkumar
Автор

Mem app har roj ek video upload kariye na plzz

vsstatus
Автор

My we love your lec but can you please provide us lec note and also Pls make video in Hindi English both to remember the concept long term pls

komalpatil
Автор

Mam plzz explain switch statement, looping statements and also jump statements in c++

likithms
Автор

mam i want ot add another option that if the partner age is greater than 50 they had to go hospital but when i do this it also says me to take wine

sameerawan
Автор

Aap ka dusra channel mil nahi raha delet kar diya kya you tube se.

sadiksayyad
Автор

Aap hairstyle ka video bnakr dalne lgo🥰😍😍

ssp
Автор

जो पढ़ाई आज आपको दर्द लग
रही है; अगर इस दर्द को झेलते
रहो; तो कल ये दर्द आपकी सबसे
बड़ी ताकत बन जाएगी..🥰🥰👍🏻

priya-wehg
Автор

Hi Jenny,

Could you please confirm us when you will provide java related classes

pavankumar-erlm
Автор

Nice video mam very informative lekin please aap jaldi jaldi videos upload kiya kijiye becuase people are loosing interest.

lavleshdubey