C_28 If-Else Statement in C | C Programming Tutorials
Вставка
- Опубліковано 9 січ 2021
- In this video, I have discussed if-else control statement in C Language | Syntax, Working, Flowchart, Examples, Programs
Best C Programming Tutorials : • Programming in C
*******************************************
Connect & Contact Me:
My Second Channel Link: bit.ly/354n7C7
Facebook: / jennys-lectures-csit-n...
Quora: www.quora.com/profile/Jayanti...
Instagram: / jayantikhatrilamba
Twitter: / khatrijenny
*********************************************
More Playlists:
C++ Programming Tutorials: • Lec 1: How to Install ...
Placement Series: • Placements Series
Data Structures and Algorithms: https: • Data Structures and Al...
Design and Analysis of Algorithms(DAA): • Design and Analysis of...
Python Full Course: • Python - Basic to Advance
Printing Pattern in C: • Printing Pattern Progr...
Dynamic Programming: • Dynamic Programming
Operating Systems: // • Operating Systems
DBMS: • DBMS (Database Managem...
#cprogramming #jennyslectures #programming #clanguage #controlstatements #ifelse
Attendance here👍🏻...just for ma'am 😁❤️
Absolutely ❤️❤️❤️😂😂🤣🤣
😅😊
Hi ❤
Present mam😁🙌
When I will watch your video then I will get complet clarity on topic thanks a lot mam and your way of teaching is awesome hands of to your teaching and didn't ever watched this type of teaching style
1. Enter 25 and 32
Go home
Out of the if-else
Both also same output
Right
Right
Best video i have ever seen🔥
❤️❤️ way of teaching is just 🔥🔥
1. Enter age:25
25
Go home
Out of if-else
2. Enter age:32
32
Go home
Out of if-else
Wrong it will be
age=25 and age=32
@@blaze102 all of u r wrong
see scanf statement
Why it is wrong..?
Mam...the way u just taught us is incredible♥️♥️
I really admire your teaching thanku mam
Bcz ur teaching again I got interest in c language mam... starting I'm worried about I'm not getting..but now I'm clear understanding
Wow, thank you so for your hard working
mam both have same answer
age=25
go home
out of if and else
or
age=32
go home
out of if and else
Even in this night time you are uploading videos , thanks for it
ASSIGNMENT(11.53)
Mam after compilation I got only one error that is MISPLACE ELSE.
I got an output after clear the above error mam.
Thank u soo much mam. I understood very well.
Thank you Jenny
Your explanation is amazing maam
AN ERROR IN THE LECTURE’S LAST CODE-
Hi Jenny ma'am, Firstly you're my fav teacher by far. I love the way you teach. Top notch. Thank you so much for your lectures. I started learning C (my first computer language) with the help of your videos and I feel so confident. Please keep up the good work. God bless you.
Secondly, after many repeated failed attempts. I finally realized that there was an error in the code @12:40 (the 'address of' operator '&' is missing in scanf function),
Because of which the whole code wasn't getting executed., also it didn't display the error in the code too).
I don't know how others haven't realized this but Yes this was a great exercise for me.
Hope this helps someone having a similar issue. Not a major 1 though.
abe kam se kam itna to khud ki akal lagani chahie na......tu kya chahta hai, grammer seekhne ke vakt koi tujhe vapas abcd revise karae..maam is also human only....it is the duty of student to neglect small mistakes and move ahead!!
scanf("%d",&age); hoba
maam age er aga & likhen ni.
Mheen...thanks
Good explanation 👍
very useful. thank you
Please make a video on graphs in data structure I am waiting for that video your explanation is very good mam thank you so much
Splendid 👌 👌 👌
Thanks a lot Mam
Love u and ur video
Thank you so much mam.
Tq so much ma'am
Thank you ma🥰
Great Mam keep it up
Amazing
Thank you mam👍
Thank u😍
Thank you ma'am
in both the cases of 25 and 32, else statements and out of ifelse would be printed and for 26-29 : age,you can have coffee with out of if else would be printed.(if curly braces are present).and if not printed then go home will aslo be printed.
Her voice 🔥✨💫
Waiting For more Videos specially array functions and stack queue
Dear Jenny Some Questions for you.
1. How to become computer scientist.
2. How to develop/create low level language like assembly language.
3. How to develop/create high level language like python, kotlin, c++ and more.
Spr question
I think you can start by watching videos and reading books
Thank u mam
Well explain mam
Liked the video. Can we have a correct order to learn coding 👍
I was late for my sem_1 buh currently I'm doing fair....!
thnkz mam...!🙏🙏🙏
Ma'am please upload videos of command line argument in c. ❤️❤️
🔥🔥🔥
You have to maintain an another channel of beauty tips💡😄.. Pretty beautiful teacher ever🥰
Osm mam 😊
Good
very helpful videos for begnniers
Both the cases same output will be generated mam. i. e, gohome
Outof if-else
10:50 hello mam
For age:25
output: go home
Out of if-else block
For age:32
Output :go home
Out of if-else block
Thanks mam
Your classes are very helpful for me mam
From Karnataka ❤
enter age :
25
age :25
go to home
out of if-else
enter age :
32
age :32
go to home
out of if-else
Plz make video on how to score good in semester exam
thnks a lot mam . please also share the pdf notes 🙏🙏🙏
Just one word amazing
Mam whenever you give a homework at the end of the video please comment on that question in your next video.Provide answer for that homework in your next
video,so that we can know whether we got correct answer or not.
❣️
In the first program there is a erroe
you didnot right & in scanf().
ur comment really solved my error at last
1st viewer...
Mam can you explain nested if elses
Mam u use two if condition in example program... if there is 2 if condition then it become nested if right??..
Mjhy c , c++, java aati h but here i come for only you.
Lec starts at 2:22
Gr8 explained..💞
But Change the thumbnail of the vedio..
Main scroll kr jata hun. Pta Ni prta...sub Aik jese hain...🤧🤩
Mam you sooo... Prety❤
Please DBMS series,,,🙏🙏🙏🙏
scanf("%d",&age) //
//address sign was missing in program.
😮
Very nice ring tone #niceringtonewaalabgm
Madam please suggest me about the computer programming languages books for beginners
when i entered 25 and 32, the INT was printed after that It printed the same output "go home" and after the else statement, " out of if else " was also printed out,
IMP point at 8:22
12:22
Enter age : 25
Age : 25
Go home
Out of if-else
Enter age : 32
Age : 32
Go home
Out of if-else
Yeah correct
Bro error vastundi program lo , because there is no "& " in scanf
@@baluch9558 yes ma'am forgot that but you can consider that bro
It won't take input in any case cause & is not used with scanf() function
Present mam
this language help in campus placement
U ra so beautiful and your teaching also so beautiful
1)
Enter age:25
age : 25
Go home
Out of if-else
2)
Enter age : 30
Age : 30
Go home
Out of if-else
3)
Enter age : 28
Age : 28
Coffee with me
Go home
Out of if-else
Note:assuming every printf statement is having a new line
Yes broh I to got same same out
Ok I well assume
Bro not 30 its 32
Your answer is wrong bro
There condition is greather than 25,and less than 30,it means it should be 26,27,28,29
If u
Case-1
Enter age:25
Out of if-else
Case-2
Enter age:32
Out of if-else
Correct
Mam can u explain about identifying errors while writing the program and after executing the program .It is very hard to identifying the errors in mobile not only for me because somany engineering students has doesn't have their own laptops or system.Mam and also explain how can we learn coding by using the mobile
mam your coding is not excuted it show (segementation fault)
because you are not using (&age in scanf funtion)
maam which time you will be uplode java lectuers
Mam all control statement par practice program provide kar dijiye
In scanf you didn't mention &. Will it show error during execution.
Thank you for sharing your knowledge with us. Keep educating us mam.
yes because we have to give adress of variable
7:25 Dangling else error // else without previous if
8:24 always use curly braces for the if and else block
Jaddi in IF-ELSE a if block containing more than one statement & we forgot to put curly braces to defined it region wewill get error bcoz there should be no other statem3nt between If statement and else statement
Mane if saraaru else part arambha jadi ame IF-ELSE byabahara karuche majhi re kicchi jatara nahin
So to avoid during use of IF-ELSE
Put the else part immidiate after the if part
Mam in scanf & operator missing
and same for 32 also mam
4:33 mam you had not mentioned (&) symbol in scanf( ) function
1.
25
Go home
Out of if else
2.
32
Coffee with me
2.22
What is kemo?
Mam at starting of the program in scan f you didn't write & symbol . You just wrote age it's & age
2:30
If condition ke andar se function call keise kare ???
2:28
Start
Home work Ans :-
1st Question -
Age is 25
Our condition is
Is ( Age > 25 && age < 30 )
Age is 25 means In Logical && = ( First False (0) && If False can't check second ) So Ans is 0 False it means If Block Not Executing.
Control directly going to else block and ,
* printing Age 25.
And then Printing remaing Code like
* Go Home
* out of the code.
2nd Question -
Age is 32
Condition is (age >25 && age
I'm having difficulties to run program
If else not working it showing no such file or directory what to do help me
@@parinitaverma4109 It happen because You Didn't choose Folder Properly That's Why Compiler giving this Error compilation time
You can Do like.
1. Open Vs Code --> Create New Folder --> Create New File File name Is Whatever but Extension is Filename.c
2 . write Your If Statement Code Properly
3. Compile it Properly gcc Filename.c
4. Compiler convert .c file in .exe file
Then you can run this by using .\ exefilename.exe
5 . if you Follow this step You will get result .
@@sourabhkale5211 thank you so much it's working ☺
@@parinitaverma4109 welcome..😊
Corrrestuuu
Video starts 2:25
In scanf & is missing mam
for scanf & is missing
Mam you did a mistake in scanf line you forgot to write adress symbol & ..... So it had been compile in an other way means it shows another age value while we enter age in between 25 to 30
How to calculate the condition of int z=a&(a>>1)
bro firstly a right shift 1 condition will apply first in bitwse then a biwise and a operator will be executed
There is no "&" in scanf before age. Is it okay?
No we should mention
Started from 2:27
Mam one doubt.... My age is 18. Now... what will be your output?? Coffee?
Watched and Understood ❤
You didn't map your age in scanf to the age variable... i.e &age. Does it not matter here?