Conditionals (if-else, Nested if and else if)
ฝัง
- เผยแพร่เมื่อ 30 ก.ย. 2024
- C Programming & Data Structures: Conditionals (if-else, Nested if and else if)
Topics discussed:
1) If else basics explained with a real-world example.
2) Nested if basics explained with a real-world example.
3) Else if basics explained with a real-world example.
4) Frequently asked questions:
i) Is it necessary to put the else part?
ii) Difference between the examples with curly braces and without curly braces.
iii) Why are curly braces used?
C Programming Lectures: goo.gl/7Eh2SS
Follow Neso Academy on Instagram: @nesoacademy(bit.ly/2XP63OE)
Follow me on Instagram: @jaspreetedu(bit.ly/2YX26E5)
Contribute: www.nesoacademy...
Memberships: bit.ly/2U7YSPI
Books: www.nesoacademy...
Website ► www.nesoacademy...
Forum ► forum.nesoacade...
Facebook ► goo.gl/Nt0PmB
Twitter ► / nesoacademy
Music:
Axol x Alex Skrindo - You [NCS Release]
#CProgrammingByNeso #CProgramming #ifelse #Nestedif #elseif
No one taught me if else like this i will never forget this😍😍
Your views on all videos are going to increase this year. I have shared your all videos on our university's course content online on blackboard. Your videos are amazing.
-Professor from Chandigarh University
Damn you explained it so well
The condition part need the Boolean value., although why "if(if(1))" gets error??
Great tutorial, however you compared an IF ELSE scenario to just an IF scenario in the last two examples about using curly braces or not. Not the same
Upload introduction to programming and programming languages...
Algorithms and data structures of each program languages
Which IDE do you use?
Code blocks
😮
With respect from Pakistan ❤️love the method of teaching ❤️❤️❤️
MASTER AT WORK words suits you...
Outstanding 👌👌plz do more videos
This is the best you tube channel for CS tutorials..i have ever seen..thank you
Am regretting for knowing this channel 24hours left for my exams😂. BY THE WAY I have still gain much.
THANKS PROF
Please is there NESTED-FOR as NESTED-IF??
Oh my God!!!!! You've provided the best context to explain if-else-if statements. Much Love bro ♥
Is there any difference between A an B?
A:
if(n == 4)
printf("n is 4");
if(n != 4)
printf("n is not 4")
B:
if(n == 4)
printf("n is 4");
else
printf("n is not 4")
Does "else" can always change into "if" ?
You can construct as many as "If" you want, but you can't use an "else" command without a previous "if". You can replace a second "if" with an "else" if you know that the result is going to be either TRUE or FALSE.
A and B is same
Thank you gurujii😇🌼🤗🙏
please make tutorial on python programming
What an explanation! The greatest i've ever found on youtube! Hats off! Respect! 👍💪☝️💓
Sir u just missed ; in example 2 for a printf function 😅 but excellence in ur
You have many fans
❣️
Sir plz start c++ .....Extremely needed
😲Wow, the way of your teaching is excellent👏
I understand everything abut if else in this video thank you sir 😌
does indentation require after if, if we put only a single statement after it?
no
Best explanation 🥰😍🤩
Sir after long time...great to see u😇
Every thing is perfect
Please activate subtitles for all c programming course
superb analogy
this is cool!
Sir when u taught I feel like programming is very easy thing in this world...
very very Nicely explained with live example. Thank you.
Love from Nepal❤
This is the best TH-cam channel ❤❤
can we use more than one else if ladder
This is so good
how many of you know that it is samsung phone?
🙋♀️
ah yes the random indian dude that'll help me pass my exams
Thankyou for the example. Ot's very easy to understand
perfection
thank you mate.. its clear for me now
Thank you so much
Waiting for Python videos sir
nah, only c, c++, and java are beasts!
What is difference between if and else if then ?
This is what teachers are to be make students grasp easily 😁
At 6:55 as far i know there is post increment in n..then how it can be 6 after execution ...i think it should be 5 .. because it is post increment not pre
I suck at explaining so how do i put this.hmmm
Just think that if dealing with single standing increment/decrement i.e a++ , n++ , i ++
then the process of incrementing value by one would be completed no matter what. ex.
i = 0;
i++
Then i would be equal to 1 , as well as
++i it is equal to one now too.
But when incrementing values is associated with equations ex.
i = 0;.
a= i++; here a = 0 and i = 1
While
i = 0;
a= ++i; here a= 1 and i =1
You have to exercise the rule of post and pre when dealing with equations.
Hope it helps
I suck ahahhaa
thank you for making this hell slightly more baring, as a physics student who was forced by the university to program (i have no idea what is going on, and in my opinion one can always hire a programmer to write a code that will calculate for me) and to program in C, the most antient one possible i don't think i'd even stand a chance to pass without these videos. thanks again.
same thing as a 10th grader
increadible explanation❤
You're good at teaching better than my prof
Easy to learn 🤗👍
very good video and excellent work plus it is simple and clear cut for understanding
Many unlucky peoples are this finding this type of content....
Means what? Bro.....
😕😕
Perfect!this is how students want their teachers to teach like this.love you bro 💖
8 out of 10
thankyouuu for teaching me
Thank you so much this helped me a lot . god bless you
He is so damn brilliant . Hands down NESO
I am bad at programming but after watching neso academy i am doing well
Great explanation sir
Excellento, perfecto, just what I needed.💯💯.Please make videos with real life examples like this one.
please give tutorial of python
i want to the slides in course c
Lenovo ka phone hai😂
Same to sam e
thanks alot your examples are easily understandable
Thats very clear, Good explanation!
You teach so well. How do I start watching your C tutorials from the first one? I can’t find this is the playlist.
best best best
Thanks. Perfect explanation I have ever seen.
If and only if
Congratulations for 1M Neso Academy Family🔥🔥🔥
when you teach us ,everything seems more easy
Nice explanation sir thank you keep doing sir all the best 🎉🎉
So can we say if we have a second ‘option’ we can use else if? Simplify very informative and also filled in some gaps I had about control flow. Please can you more and relate them to androids and sites because I’ve been struggling to reach the actual examples to why we had to use such logic in the first place to execute a statement
man this is amazing I am going to finish the whole series inshallah thanks for this
Outstanding
Got 6/10..Thank u neso for helping me in improving the c language..,I got better conceptual clarity.keep helping by giving free education to all..,make the country proud...😀❤️❤️
Sir please upload full series soon
Namaste sir.🙏🙏
I never get anyone like you.
Your teaching style is awesome.
Love from Bangladesh 🇧🇩
What an explanation man!!
Thank u
Wonderful real world example
You are the best!
Thanks for taking the time to explain everything so easily.
Regards from barcelona (spain) from a struggling C50 course taker.
Mindblowing explanation.
What a clear explanation ❤❤
Thank you Sir for your Dedication 🙏 🙏🙏
greetings everyone
Very useful .....🤗
thnk you sir
Neso never put us down.. always there to provide us valuable knowledge.
8/10
Best channel to learn the concept of CS 👌👌
Sir Please Complete the Syllabus...😧😧😧
How to install c in PC proper ly.... pls anyone answer
download code blocks and then boom panis
Notes?
Super 👌🏻👌🏻👌🏻👌🏻
Thanks!
Sir, Actually in the mentioned example there is error you forget to add termination
int n =5 ;
Sir please post new videos in this playlist asap...I am preparing for placement... And this playlist is helping me a lot... Thank you😊
7 right and 4 are wrong my answer
Very useful tq bro
i got 8 .
ur teaching that perfect congrats
Am impressed