In the example that's used to explain logical AND, a = 10 and b = 5, so b < a becomes TRUE. But while explaining, it's stated as FALSE, which needs to be corrected.
@durgalankipalli25412 жыл бұрын
Yes that's true, even I got the same doubt :)
@SimranSingh-yj7jk2 жыл бұрын
Yess
@bestpartrecaps97232 жыл бұрын
she must have made a mistake.
@Narratesmart2 жыл бұрын
True
@umendramehra57042 жыл бұрын
Can you explain I didn’t understand.
@iconboy59733 жыл бұрын
With your videos I've passed my first semister,thank you Jenny mam 🎉from ANDHRA
@alishettishreechakra37424 жыл бұрын
Mam this is my first year in BTech.my cse teacher is not teaching well so I have no worries now because now I am learning from you.Thank you mam
@shivatapasya19103 жыл бұрын
Nice dp
@sumitp91582 жыл бұрын
Bsdk aukad ke bahar ki dp mt laga. Sushant is legend ❤❤
@herohera34972 жыл бұрын
@@shivatapasya1910 how
@stormbreaker27915 ай бұрын
then now you have completed the course
@akuruyajoshua7192 жыл бұрын
You're a life saver ma'am. RESULT 1 : 1 RESULT 2: 0
@meghanakondeboina48082 жыл бұрын
Hey both are one right ?
@lucky44502 жыл бұрын
Result1=1 Result 2=0
@rachitparashar12432 жыл бұрын
@@meghanakondeboina4808 no 1st is 1 second is 0 bcz after result 1 value of a and b changes at end of result 2 a=0,b=8
@prabhakergautam92042 жыл бұрын
@@meghanakondeboina4808 yes when we do it in the same program otherwise 0 i.e. result 1 and result 2
@ShubhamSingh-qf1qi Жыл бұрын
both should be zero
@18fatima1510 ай бұрын
16:34 result_1=a>b && printf ("jenny") || printf("lectures") && printf("jk"); result_2=a>b && printf ("jenny") || printf("lectures") || printf("jk"); OUTPUT: result_1=1 result_2=1 20:22 result 1=1 result 2=1 (both result_1 and result_2 are evaluated in the same program
@pRABHAya9 ай бұрын
result= --a&&++b; will be 0 Result 2 will be 0 not 1
@AvtarSingh-rj7jz4 ай бұрын
Yes you are right 👍 output is 1
@MitaliRathi-z7t20 күн бұрын
Result=--a&&++b=0
@MechMonty3 жыл бұрын
i had forgotten the operator precedency concept and in evaluation tests many times made mistakes. Now its clear to me. thanks
@srvocals16463 жыл бұрын
jenny1 is the result
@shafizulislam2553 жыл бұрын
A beauty can explore the beauty..... Excellent lecture.
@geetageeta79333 жыл бұрын
16:35 result will be true(1) Output lecturesjk1 16:43 also output is lectures1 Because as log or gets 1st true it will not check another condition
@SadhanaSharma3 жыл бұрын
Lectures or Jk ka beech me space q nhi h ???
@hasanmahmud9772 жыл бұрын
thanks
@maryannemuthoni5388 Жыл бұрын
Thank you so much Jenny, i didn't know anything about the precedence, assosciativity, you clarified the increments and decrements perfectly. This is my third day watching your videos.
@jyoshnareddy10132 жыл бұрын
a-- becomes 1 it means true and ++b becomes 7 so it is also true finally true and true is true it means "1" In second case --a becomes 0 it means false so in logical and if any one condition is false then whole result gets false it means "0"
@mohammedmosin45612 жыл бұрын
Nice explain bubby
@ad_mastermind13132 жыл бұрын
Tnx bro
@lucky-ls2es Жыл бұрын
Bro a-- =1 ok but after that 1-1=0? And in result 2 a value will be -1know??
@AashutoshKumar-h4w2 ай бұрын
@@jyoshnareddy1013 if both 1&2 condition are in same question then in second condition the value of --a is "-1"
@saitejaraju111511 ай бұрын
Hi mam Near 4:58 stated has false But It's true b
@chiradeepbhattacharya48583 жыл бұрын
logical int main(); { int a=4,b=5,result; result=a>b && printf ("jenny") || printf("lectures") || printf("jk"); printf("%d", result); result 1=1 result 2-1 maam both the result will be one because it is an OR GATE Used in this case.
@dhanrajm46524 жыл бұрын
Hai Dear Ma'am, When Your discussed && Operator b
@abdulrahimjalloh363 Жыл бұрын
You are the best lecturer i have ever seen for programming. Many people knows programming, but they dont know how to teach. but you, i can give you AAAAA++++++++💯
@vinayaksharma9454 жыл бұрын
Mam I saw your each and every video 👍👍👍 mam pleasssss give a heart to this comment
@prajaktakadam47793 жыл бұрын
When you print("Jenny") in Logical operator example.Return type of printf() is 1 thats why result is 1
@shrur35272 жыл бұрын
dear mam thank you will be very less for your videos , praying for all happiness n success to u n to ur family , i m benefited a lot by your videos , you are an excellent teacher
@walkwithme_P623 жыл бұрын
1) lecture Gk 1 2) lecture GK 1 3) 1&&1=1 4) -1&&1=0&&1=0 Thanks ma'am ur doing good job...👍👍🙏🙏
@rajeshreddy98322 жыл бұрын
minus one value is 1
@aditiraj81474 жыл бұрын
Ma'am for the Q of combination of logical operators answers of both the Q will be JennylecturesJK1 & For the Q of int a=1 , b=6 .... Result 1 =1 and Result 2 =0
@geethikakrishna44603 жыл бұрын
Jenny won't be there
@geethikakrishna44603 жыл бұрын
Coz first exp is 0 so Jenny won't print
@ParamitaDey-bi1mg3 жыл бұрын
@@geethikakrishna4460 Yes I also think Jenny won't be there ... Output will be. LecturesJK1
@swetakumari66413 жыл бұрын
@@ParamitaDey-bi1mg first jkprint after that lectures..so final result would be jklectures
@NothingWrong-w7b3 ай бұрын
@@swetakumari6641 but both are 1 right?
@neelasatyasai68523 жыл бұрын
"AND" is a king he all ways want 1 rupee from all to say YES. "OR" is a Begger he satisfies with at least 1 rupee from any one to say YES. This is how i remember.
@FathimaRashaTP-k9d Жыл бұрын
i was strugling hard to remember it..but now i can..thnq so much for the comparison bruh🤗
@vanitymeetstechnology87928 ай бұрын
If there is no begger then.. what will happen then. OMG I am worried of my program
@syednaveeth98253 жыл бұрын
Now I understand computer is consider -1 is true value got it thank you mam
@De-CODE73 жыл бұрын
in the last problem , --a = -1 , right ?
@syednaveeth98253 жыл бұрын
@@De-CODE7 Yes bro you are right ✅
@pradeep569142 жыл бұрын
@@syednaveeth9825 -1=0 ya frr -1=1...konsa hoga or kaise bro
@EjazKhan-fr6tp3 жыл бұрын
Maam at 4:50 in that expression b
@adityagk13 жыл бұрын
thank you so much mam, every doubt is cleared now regarding operators.
@kennedychukwu41522 жыл бұрын
Jenny thank you for the content you create. Please can you do one on Javascript.
@Joycee742 жыл бұрын
Result when && at the end = JK1 and Result with || at the end is also JK1. This is so because Logical && has a positive value at first, then the result is automatically TRUE which is 1, and logical OR (||) already have one and both values as TRUE, so, result is equal to 1
@chikwendumiracle27372 жыл бұрын
Are you part of the alx se program
@Joycee742 жыл бұрын
@@chikwendumiracle2737 Yes
@udaysingh66212 жыл бұрын
@@Joycee74 In &&: Output: lectures jk 1 In II : Output: lectures 1 Please check, I think that this should be the right answer
@MUDIT-vy7kb Жыл бұрын
yes this is correct@@udaysingh6621 but no spaces in between
@shreyabiswas73133 жыл бұрын
Result 1 = a - - && + + b output 1: 1 Result 2 = - - a && + + b output 2: 0
@Robin-zs7yy3 жыл бұрын
Output 1: 0 na???
@Robin-zs7yy3 жыл бұрын
Smjh ni Aaya merko😅
@shreyabiswas73133 жыл бұрын
@@Robin-zs7yy no bro Cuz in 1st result... Post increment is happened.,. So 1st initial value of a is applied and then after execution the value of a will be incremented.. So, in 1st result : 1 && 7 So. 1st Output will be true or 1
@ArjunCool3 жыл бұрын
Excellent ❤️
@arjunnaiduravuri94292 жыл бұрын
2nd output is 1 because after execution of first statement a value becomes zero in 2nd statement a is pre-decrement then value of a becomes -1
@ramprakashpathak6611 Жыл бұрын
16:45 both result is one.👍
@Ajay_13514 жыл бұрын
in AND operator 5
@MrMrsKarthikRaj3 жыл бұрын
yes
@shivam71643 жыл бұрын
Answer toh phir bhi zero hi hoga
@humanAbsu3 жыл бұрын
😂😂 such me yrr
@pratibhanadiger68273 жыл бұрын
✋✋✋
@ayushisajwan012 жыл бұрын
@Pratik 006 bro lekin final result to false (0)hi hoga Naa... chahe ek operator true or dusra false ho....
@rahulsati58193 жыл бұрын
mam you are best.no one is like you
@sowmyakoruprolu8 ай бұрын
In the example that's used to explain logical or ,a=4 && b=6,so it to be a>b becomes true.But while explaining , it's stated as flase, which needs to correct
@anusha_pathivada Жыл бұрын
For the last question both are false mam And tq so much mam for your vedios ❤we are loving them
@Bakriallhashimi5 ай бұрын
For the result1 the output is 1 and for the second one the output is 0. Thank you so much for the tutorials
@aarthi83584 жыл бұрын
Thank you Jenny mam ❤️ from tamilnadu
@gmramkumar95363 жыл бұрын
naanu..
@angeloghenefuafo2 жыл бұрын
the first one is 1 and a becomes 0 while b becomes 7. then second one the results is 0 won't check the other because it's AND Operator, while becomes 7
@suosatyanarayanjaganathan47023 жыл бұрын
Answer to the last question at 20:22 is 1 and 0 respectively
@varshanpoola2453 жыл бұрын
Perfect bro
@cyberguy692 жыл бұрын
Now my concept is crystal clear
@creativityanand95668 ай бұрын
Jenny mam your doing so hard work god bless you I donot like c programming but when your saying I am so interested to listen and understand
@granderuhu6 ай бұрын
result1: 1 && 7 which is true result2: -1 && 8 which is also true
@shreyabiswas73133 жыл бұрын
Output for expression 1 & expression 2 Both ans will be 1 Expression 1 : lecturer jk 1 Expression 2 : lecturer jk 1
@anmolvashisth58093 жыл бұрын
the first output will be 1 and the second will be 0
@shreyabiswas73133 жыл бұрын
@@anmolvashisth5809 noo
@ParamitaDey-bi1mg3 жыл бұрын
@@anmolvashisth5809 why ?
@meghanakondeboina48082 жыл бұрын
@@ParamitaDey-bi1mg cause value of a is -1 but not 0.
@marcninochristopherocampo51382 жыл бұрын
#include int main() { int a = 1, b = 6; printf("ResultA = %d ", a-- && ++b); printf("ResultB = %d ", --a && ++b); return 0; } Output: ResultA = 1 ResultB = 1
@herohera34972 жыл бұрын
i didnt understand can you teach me?
@Surya-uu1vy2 жыл бұрын
Result B is zero bro
@Bharathkumar-hw3fm Жыл бұрын
Result B=0 because, in logical and if one condition is false then it won't go to next statement. It will be print 0
@lucky-ls2es Жыл бұрын
Yeah . i got the same
@hopemeles4106 Жыл бұрын
that is result b is one becase of a--- the result A 1-1 =0 then the result --a the 0-1 the the out put -1 so that -1 and 8 is one please check it@@Surya-uu1vy
@udaysinghrana57252 жыл бұрын
16:47 - Output is 1 20:33 - Result1 = 1 (Post-Decrement) and Result2 = 0 (Pre-Decrement)
@maryannemuthoni5388 Жыл бұрын
Minute 4:59 has a small error, 5
@starkendeavours70724 жыл бұрын
Result 1: Lecturesjk1 Result 2: Lectures1 for question 1 and result 1 = 1 and result 2 =0 for last question
@vaibhavsingh551304 жыл бұрын
Same my answer
@rohitsunariya84693 жыл бұрын
why not jk in result 2 of que 1 please tell
@swapnilsuradkar1102 жыл бұрын
@@rohitsunariya8469 or operator used...first condition true so it will not check next condition
@ankitapriyadarshinijalli50693 жыл бұрын
Thank you maam..I survived my 1yr of cse because of you.
@SadhanaSharma3 жыл бұрын
19:42 here first we should evaluate a++ na because it's precedence is higher than relational operator Please help
@onlystudy9729 Жыл бұрын
#include #include int main(){ int a = 4 , b = 6 , result; result = a > b && printf(" vikram ") || printf(" c language by jenny ") && printf(" i have almost completed 17 lectures out of 150"); printf(" %d ", result ); return 0; } output : c language by jenny i have almost completed 17 lectures out of 150 1
@kavyareddy53923 жыл бұрын
expression 1: lectures jk 1 expression 2: lectures 1 result 1: 1 result 2: 0
@ParamitaDey-bi1mg3 жыл бұрын
Why in expression 2 jk will not be printed ? Why result 2 is 0 ? It suppose to be one ? Pls ans
@Bharathkumar-hw3fm Жыл бұрын
Result 2: 1. Not 0
@d.harikrishna91612 жыл бұрын
Hii Can u explain fatal error Ur sections very nice
@sulurulokesh78779 ай бұрын
madam in c language it is possible at run time of 15:00 but in java we will getting an error of short circuit. as the output line does not return any value . so that void is not assigned to int. thank you
@mohamedaljorni9360 Жыл бұрын
result 1 = 1 result 2 = 0 thanks maam for this Simple explanation and great ideas
@Tijiyabhanu10 ай бұрын
Yes you are correct
@deepnarayan1233 жыл бұрын
Result1 is true Result2 is also true And rest of all answer is also true
@manirulmolla55192 жыл бұрын
Very well explained, Thanks😊
@venup53813 жыл бұрын
at 16:34 and 16:43 the answer is lecturesjk1 here jenny wont print because 1 expression is 0
@mohdanwarkhan46613 жыл бұрын
# include main() { int a=4,b=6,result; result=a>b && printf("jenny")||printf("lectures")|| printf(" jk"); printf("%d",result); } output: lectures 1
@ashishbisht68572 жыл бұрын
@EaSץWᗩчs 【• ‿•】 because in logical or if first statement is true it will not go to second statement
@devendernarra2484 жыл бұрын
Tq mam, I'm learning lot's off ,from ur videos
@isaac-victorshonowo1838 Жыл бұрын
Watched and Understood ❤
@krishnakumar-gu6oi3 жыл бұрын
MY FIRST SIMPLE PROGRAM DONE
@maryannemuthoni5388 Жыл бұрын
Question 1: int a = 4; int b= 6; a>b && printf("Jenny") || printf("lectures") && printf("JK"); Answer is 1 or true Question 2: 1 && 7 is 1/True Question 3: -1 && 8 is 1/True
@yaswanthsirela1132Ай бұрын
result 1 is 1 result 2 is 1 pls reply is correct or not mam
@_JAYASRIS-zt5zw9 ай бұрын
Thanks a lot making this concept crystal clear
@Mr.Yaragonda4 жыл бұрын
Thank❤🌹😊 you so much madam..... You are my best KZbin▶️ 👩🏫teacher
@sreekanthkurakula72713 жыл бұрын
can u plz explain how to give first priority to logical AND for logical OR for selecting
@gmramkumar95363 жыл бұрын
Logical precedence : NOT > AND > OR
@LIGHT-fz8yu3 жыл бұрын
Thanks 🙏🙇 Now I get it correctly
@saideeplade2 ай бұрын
mam u are explained very well but where was practice topic wise ?
@chamarthykoushik2043 жыл бұрын
madam here b
@meghanakondeboina48082 жыл бұрын
1. Lectures Jk 1 2. Lectures Jk 1 Is it right?
@immanojgm Жыл бұрын
What is the associativity for AND,OR,NOT and make sure what is precedence of these.
@jashankaur37262 жыл бұрын
your learning mathod is so great mam 💙
@nooludhanasekhar05 Жыл бұрын
Mam you can do this javascript. Why Because is teaching very good contents. Any way no purchase for c language good achive my self
@Classy_Rajesh3 жыл бұрын
For && statement answer =1 For // statement answer =1
@RishiVaish-ym1nr4 ай бұрын
Thank you so much, ma'am 🌟
@amnanadeem12822 жыл бұрын
Love your lectures ma'am
@SahasraMuthyam6 ай бұрын
We should consider and as multiplication as in case of logic gates
@ChanduChandu-rm7hf Жыл бұрын
What if negative constants mam!
@rushikeshsanap1981 Жыл бұрын
Thank you ma'am Nice suit by the way
@dipeshkumar97863 жыл бұрын
mam upper wale example mai 5 is less than 10 hai to wha falkse nhi true hoga n
@manjumv52182 жыл бұрын
mam at 19.02 ++ is having higher precedence than ll operator .so a++ is evaluated before ll ..value of ' a 'would be 11. Please check it..
@AashutoshKumar-h4wАй бұрын
if we run In same program then Output for Result 1= 1and0 Result 2= 0and 0
@dhanmay19694 жыл бұрын
Mam answer of Q1 = 1 && 1.. And of Q2 = 1 && 0....
@klektech61262 жыл бұрын
For Logical Expression-1 Result =1 a=0 b=7 For Logical Expression-2 Result =0 a=0 b=6
@hirenkumarv.ajudiya75342 жыл бұрын
Ma'am... Please Correct At 4:57
@raunakraj3746 Жыл бұрын
result1=1 result2=1 You're a life saver ma'am.✌✌✌✌ thanks, ma'am, for this wonderful lecture!
@mainshashaik50972 жыл бұрын
Ascii value of< is 60, > is 62 the comparision of '' = 0
@SadhanaSharma3 жыл бұрын
19:42 ma'am but first we should evaluate a++ na because it's precedence is higher than relational operator
@kumarabhishek29013 жыл бұрын
💯 post increment or decrement having least priority than assignment operator
@De-CODE73 жыл бұрын
@@kumarabhishek2901 what do you mean by this post++ and -- , is a type of assignment operator bro. you should compare it with relational operator
@ShyamSundar-xd4lb2 жыл бұрын
Paranthesis () have highest priority of all
@gautamshakya973 Жыл бұрын
int main() { int a=5,b=7,result; result= aa && printf("!!")&& printf("true "); printf("%d",result); } Hello mam!! I get output of this code is 1, so why doesn’t and operator is evaluated first according to precedence as you said!! In my analysis OR operator is evaluating first according left to right
@Prasanna-im1zy Жыл бұрын
Did u get the answer even I am getting output as 1 By the way it should be !!true 1 Ryt??
@gautamshakya973 Жыл бұрын
@@Prasanna-im1zy still couldn't get through of this😰😰
@arshkhan449 ай бұрын
The output of the last homework in a correct way :- #include int main() { int a=1,b=6; int result1=a-- && ++b; printf("Values becomes in result1 : "); printf("A = %d B = %d ",a,b); printf("The result1 is : %d ",result1); int result2 = --a && ++b; printf("Values becomes in result2 : "); printf("A = %d B = %d ",a,b); printf("The result2 is : %d ",result2); return 0; } OUTOUT : Values becomes in result1 : A = 0 B = 7 The result1 is : 1 Values becomes in result2 : A = -1 B = 8 The result2 is : 1
@shireesha5115 ай бұрын
0 && 7 becomes 0 ...so result 1is = 0
@shireesha5115 ай бұрын
Can u please tell me how in result 2 A = -1
@bharathivlogs13062 жыл бұрын
Both answers came false for me is it correct mam??
@sandeepkaleshriya3 жыл бұрын
Ma 'am 1st example me b
@sreenithisundarraj90212 жыл бұрын
Mam ,for me ,you are god🙏
@bajrangjangid70513 жыл бұрын
What would be the associativity for logical operators...? Here less than operators must be seen before any == operators right?
@anandiam3344 жыл бұрын
Love Jenny so much❤️❤️
@krupa19634 жыл бұрын
Output for Expression 1 : lectures jk 1 Expression 2 : lectures 1
@bommanareddaiah39504 жыл бұрын
Mam say full python language how to write sourcecode in python language in any concept
@wahabolayinka2246 Жыл бұрын
Thanks for the videos
@vanshsindhu85594 жыл бұрын
Ma'am aap Coding train channel jese Coding kro..... Like when you see it.. Then like laptop.... May be some coding challenge... Plz reply if u don't get it.... Thanks ma'am By the way I am from Haryana
@tps84702 жыл бұрын
Thanks a Lot Mam
@lokendrasinghrathore9812 жыл бұрын
Bracket is higher precedence to unary
@poornimab88772 жыл бұрын
Really super ma'am
@handekarilingojivarasaikri7823 жыл бұрын
Result of a-- && ++b = 1 And a = 0, b = 7 Result of --a && ++b = 0 And a = 0, b = 6.....
@suchithpk48443 жыл бұрын
Bro hw u did can u explain plz
@handekarilingojivarasaikri7823 жыл бұрын
@@suchithpk4844 In 1st one it is first assigned then decremented (a--) and reverse in the case of b++.. This means -1 && 7 is the expression. Expect 0 all are true values..So it will be 1.. In 2nd case --a it's first decremented then execution takes place. So 0 && ++b = 0 If in && first expersion in false then it will not evaluate the second expersion. And a= 0, b= 6.. Whereas in 1st case it is true for first expersion. So a = 0, b = 7 I hope you got it...
@sayansaha53263 жыл бұрын
Result 1 is 1 Result 2 is 0 But when I do it in compiler then my answer is 1 and 1 ,, what is my mistake mam plz tell me
@sayansaha53263 жыл бұрын
I think that ( - 1) means 1 in logical And Operator .
@moubeothniel8432 жыл бұрын
Int a= 1 result = a- - && ++b answer is 1 Int b = 6 result = - -a && ++b answer is 0