C_18 Operators in C - Part 6 | Bitwise Operators | C Programming Tutorials

  Рет қаралды 466,910

Jenny's Lectures CS IT

Jenny's Lectures CS IT

Күн бұрын

Пікірлер: 316
@syedalifathimaa9618
@syedalifathimaa9618 4 жыл бұрын
The way you're teaching, presenting problems to us, and claiming for answers in the comment box is quite convenient to grasp the concepts and make us feel the classroom environment.
@RukhaySukhayPakwaan
@RukhaySukhayPakwaan Жыл бұрын
I can proudly say that this mam is the reason why i scored good marks while i was doing my engineering. Lots of love from nepal ❤️🙏
@shrur3527
@shrur3527 2 жыл бұрын
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
@alehegnmandefro8111
@alehegnmandefro8111 3 жыл бұрын
It very good lecturing about general concept of C++ programming and she continuous this the work teacher.
@BrendonJeje
@BrendonJeje Жыл бұрын
Thank you mamm for the wonderful explanation. a&b = 2, a | b = 14, a ^ b = 12 and and the last is 1
@alluarjunfan813
@alluarjunfan813 2 жыл бұрын
mam your classes are super I am listening u r class 50 % for subject and 50% for you
@marufqureshi8429
@marufqureshi8429 2 жыл бұрын
Nice session Ma'am My doubts are always cleared by watching your session. Thanks a lot for this awesome session.
@itzscouter1795
@itzscouter1795 3 ай бұрын
Output will be 1 and b will be 7...Also you are best Ma'am..Today is my exam and I was so tense now my mood is good too after watching your video...Your teaching is best☺
@MECH-to-IT
@MECH-to-IT 24 күн бұрын
1 and b = 6... bcoz 0 && b++ then first false then second not checked in and op.
@akashpraveen9814
@akashpraveen9814 3 жыл бұрын
Far better than my college professor..she is just a noob in front of you..😂
@shashwat4299
@shashwat4299 2 жыл бұрын
Again jenny ma'am you nailed it up to mark very clear and smart teaching
@kingvideos1862
@kingvideos1862 2 жыл бұрын
Mam thankyou you are better than my teacher it's very helpfully for me
@sailendrachettri8521
@sailendrachettri8521 3 жыл бұрын
I learned alot Thank You ma'am :) Now let's got for part 2
@PalliSeetaram-qz7fu
@PalliSeetaram-qz7fu 5 күн бұрын
Mam super explanation 🎉🎉🎉🎉🎉❤❤❤❤❤
@abhishek9471
@abhishek9471 3 жыл бұрын
In second the output will be 1 in(&&)case And b++ will print 7
@shuchianush4028
@shuchianush4028 11 ай бұрын
No brother the precedence changes and 0 && b++ will be evaluated first and then 1 || (value of 0 && b++) …so output will be 1 but again b value will not be affected
@SadhanaSharma
@SadhanaSharma 3 жыл бұрын
13:07 output of first three statement is 2 14 12
@dasariemima2082
@dasariemima2082 2 жыл бұрын
bro can you plz explain y 14 and 12
@pareshitaliya8294
@pareshitaliya8294 Жыл бұрын
bro hear we get 2 15 12
@pratikrajverma696
@pratikrajverma696 3 жыл бұрын
I love you ma'am as a student and teacher relationship ☺️💛
@hassanrizvi5934
@hassanrizvi5934 Жыл бұрын
Mam the way you teach to us is the best way and we understand and resolve our problems easily 👍👍
@tithighosh2169
@tithighosh2169 4 жыл бұрын
Ma'am please upload videos of pointers, structure,union,enum, files handling, command line argument of c.❤️
@princechoudhary1025
@princechoudhary1025 4 жыл бұрын
Yes 🙏
@nitishkumarsingh1980
@nitishkumarsingh1980 3 жыл бұрын
@@princechoudhary1025 mam has uploaded it
@MechMonty
@MechMonty 3 жыл бұрын
in the last case after adding && b++ and printing b only gives value of 6 so that means it doesnt execute the expression && b++ as per left presidency and OR operator before on left
@hariparuchuru3858
@hariparuchuru3858 2 жыл бұрын
after changing the logical or operator to logical and the final output of the statement will be 1 and B value will be updated as 7.
@SaraswotiKhadka
@SaraswotiKhadka 2 жыл бұрын
how 7? can you explain??I'm confused
@hariparuchuru3858
@hariparuchuru3858 2 жыл бұрын
@@SaraswotiKhadka at last mam changed the question i.e ( a&b && b+1 || 0 || b++) first mam explain with this example later, The question is ( a&b && b+1 || 0 && b++) bitwise & has higher precedence so, now the expression on solving ( 2 & 7 || 0 && b++) so, 2&7 = 1 So expression changes as follows (1 || 0 && b++) here && has higher precedence and also b is updated to 7 here as we used b++ in our expression. so, 0 && b++ is done first i.e 0&&6 output is 0, now ( 1 || (0 && 6)) BECOME (1 || 0) Finally output of this expression is one bcoz of logical or.
@SaraswotiKhadka
@SaraswotiKhadka 2 жыл бұрын
@@hariparuchuru3858 may be i got it. Thank you
@udaysingh6621
@udaysingh6621 2 жыл бұрын
@@hariparuchuru3858 bro, in logical and (&&) , if 0 is one of the operand then we don't fetch the second operand and the result is 0 , as in this 0 && 6 output is 0 and we don't consider the second operand So b++ value remains same i.e. 6
@hariparuchuru3858
@hariparuchuru3858 2 жыл бұрын
@@udaysingh6621 we don't get 7 but result is 1 only
@aditiraj8147
@aditiraj8147 4 жыл бұрын
Ans for 1st 3 Q are 2, 14, 12
@sumityadavazamgarh8023
@sumityadavazamgarh8023 Жыл бұрын
🎉🎉🎉
@soham11_2
@soham11_2 Жыл бұрын
Hello, want your insta id 👋🏻
@ananthu4141
@ananthu4141 Жыл бұрын
Which part can u mention it?
@ananthu4141
@ananthu4141 Жыл бұрын
​@@sumityadavazamgarh8023Bruh where it is?
@hokagekonehamaru-ec7kw
@hokagekonehamaru-ec7kw Жыл бұрын
​@@ananthu414111:11
@codingwithrehan1503
@codingwithrehan1503 3 жыл бұрын
Mam ,you use very simple English words. Thanks 😊
@Shopsupreme1
@Shopsupreme1 2 жыл бұрын
like seriously ma'am u are really good, u just thought me a shortcut for this...
@samk11-YO
@samk11-YO 3 жыл бұрын
mam you best from my all c teachers . i saw your all videos and inspiration from your video love you mam and make new best videos on c language .
@padduvadlamani7619
@padduvadlamani7619 3 жыл бұрын
kzbin.info/www/bejne/g2KqqHWOZd-beZY
@vinayshukla6316
@vinayshukla6316 3 жыл бұрын
You can fast forward the video, Actual content started from 2:30,before this all just the unacademy promotion.
@arshadtv7744
@arshadtv7744 2 жыл бұрын
Very good teaching every topic is covered 🤗
@ashishtayade047
@ashishtayade047 Жыл бұрын
Thank you mam very nice gide & very nice best information bitwise operator teaching video.👍
@sixtusagbo
@sixtusagbo 2 жыл бұрын
God bless you a million times
@mamuni2006
@mamuni2006 3 жыл бұрын
Technically you r correct and you are technically sound. Don't get nervous or fast while teaching. But teaching is good. But you can make it better because you are technically sound.
@nagagopi4448
@nagagopi4448 3 жыл бұрын
Mam in this above video u said ,printf("%d %d",a&b&&b+1|0&&b++), it will print b value as7 but it is giving only b++ old value as 6
@neerajaneeraja6971
@neerajaneeraja6971 3 жыл бұрын
Yes ,I also got the same answer
@AnkitKumar-ud4vt
@AnkitKumar-ud4vt 3 жыл бұрын
@@neerajaneeraja6971 me too
@farzanaashraf8136
@farzanaashraf8136 2 жыл бұрын
@@AnkitKumar-ud4vt @Neeraja Neeraja Because at second last evaluation of expression, first && operator will be evaluated then || operator will be evaluated and there is 0 as first operand in && operator then there is no need to check for the second operand and consequently b value will not be incremented. I hope you will get it, what I tried to explain. 🙂
@madhubantu5180
@madhubantu5180 2 жыл бұрын
​@@farzanaashraf8136 bhai insta id chahiye aapka
@farzanaashraf8136
@farzanaashraf8136 2 жыл бұрын
@@madhubantu5180 Why
@SandeepKumar-pm5op
@SandeepKumar-pm5op 2 жыл бұрын
Thank you for teaching us in an excellent manner you are extremely better than my college faculty they don't taught me all this so that I'm stuck with lot of doubts So because of you I'm able to i understand everything thank a lot mam 💟💟💟💟💟💟💟💟💟💟💟💟💟
@pcj0949
@pcj0949 Жыл бұрын
Our sir in our college explained the same topic for 40mins but I understood after watching your video mam
@5j9harishguggilla23
@5j9harishguggilla23 4 жыл бұрын
Mam ur explanation is so nice like you😍😍
@mehakrafiya5481
@mehakrafiya5481 2 жыл бұрын
Video starts at 2:26
@fiazwaris1185
@fiazwaris1185 4 жыл бұрын
You are such a cute teacher i like all your vedios that understand able 😊😊😊
@starkendeavours7072
@starkendeavours7072 4 жыл бұрын
Yes mam please take some good, hard, and really tricky examples on Logical and Bitwise, and Relational operators combined
@SARIKICULTURE804
@SARIKICULTURE804 2 жыл бұрын
mam your teaching method is very impressive
@sonakshitripathi30
@sonakshitripathi30 10 ай бұрын
Thankyou so much mam it’s an amazing experience , learning from you ❤
@agni_pranay799
@agni_pranay799 3 жыл бұрын
Mam apko dekh ke hi sb samajh me a gya🤤🤤🤤
@anusha_pathivada
@anusha_pathivada Жыл бұрын
Im with zero doubts mam thats bcoz of you tq so much mam ❤
@shahsufi1374
@shahsufi1374 3 жыл бұрын
amazing thanks mam BANGLADESH
@codehawkofficial
@codehawkofficial 3 жыл бұрын
The guy named Ladesh: ○_○
@poornimab8877
@poornimab8877 2 жыл бұрын
Excellent ma'am ❤️
@ogfactboy1977
@ogfactboy1977 3 ай бұрын
Best teacher 🎉
@yashsharma-td6ii
@yashsharma-td6ii 2 жыл бұрын
mam in the logical AND(&&) operator the final output will be 1 and 7 right. I didn't understood how did we got 2 there. Can you please clear this doubt mam?
@kunabhavani
@kunabhavani 2 жыл бұрын
The one is below 2 so
@Sindhuuu99
@Sindhuuu99 Жыл бұрын
Tqq so much mam for ur clear cut explanation 🎉🎉❤
@oteikwufrancis1108
@oteikwufrancis1108 Жыл бұрын
Good day Ma'am. 2 years later and your course is still very much relevant! Thank you for what you do. So I have a question, when performing certain operations on while working with binary in jpeg mode, we usually have to check if the first four digits of the 4th byte of a specific amount of data is a certain value. Here, we use the bitwise & operator. My question is, when checking to see if the first four values are similar to 0xe0, why do we use the & operator with 0xf0 on one side and 0xe0 on the other? Why don't we have 0xe0 on both sides? An example code is as shown below: if (buffer[0] == 0xff && buffer[1] == 0xd8 && buffer[2] == 0xff && (buffer[3] & 0xf0) == 0xe0) Look forward to hearing from you soon ma.
@tithighosh2169
@tithighosh2169 4 жыл бұрын
Great ma'am ❤️.
@mayureshdalvi8808
@mayureshdalvi8808 3 жыл бұрын
Thank You for clarified our doubts
@asu253941simi
@asu253941simi 6 ай бұрын
Hi, you are the best.. thanks for your help...
@durgalankipalli2541
@durgalankipalli2541 2 жыл бұрын
a&b= 2, a|b= 14, a^b= 12, lastOne= 1
@SaidabeeShaik-n2o
@SaidabeeShaik-n2o 4 ай бұрын
Excellent explanation
@vishalKumar-dd7pg
@vishalKumar-dd7pg 4 жыл бұрын
Really like your explanation ma'am superb 🔥🔥🔥🔥👌👌👌👌👌👌👌
@gurubarathi4954
@gurubarathi4954 2 жыл бұрын
I am impressed on your 💕
@gaganshuyadav6613
@gaganshuyadav6613 3 жыл бұрын
Thanks for help Ma'am 🙏🙏🙂
@nihadkv2976
@nihadkv2976 3 жыл бұрын
You are very beautiful ❤️ And the video helped me a lot
@ShivamKumar-yd3ix
@ShivamKumar-yd3ix 3 жыл бұрын
It's a very helpful video mam thank you
@Mr.Yaragonda
@Mr.Yaragonda 4 жыл бұрын
Thank you❤🌹😊 so much for your lectures madam...... Gratitude from bottom of my heart❤💖
@AnuradhaChelluri-b3n
@AnuradhaChelluri-b3n 2 ай бұрын
Good explanation
@vaishnavinalabolu9603
@vaishnavinalabolu9603 Жыл бұрын
It's very cleary😊
@abiramis5683
@abiramis5683 2 жыл бұрын
Int a=10 b=6 a&b is 2 a | b is 1 a^b is 1
@mohammedfayis6487
@mohammedfayis6487 Жыл бұрын
will you make a separate video for bitwise operation examples??
@sabloktantr9718
@sabloktantr9718 3 жыл бұрын
You are my best guru
@adityaprakash6248
@adityaprakash6248 2 жыл бұрын
can you please tell why when a=10,b=5,a&b is 0. while when a=10 and b=6, a&b is 2.
@Rimuruchloe3722
@Rimuruchloe3722 3 жыл бұрын
thank you for this video mam😃
@LoshnaDash
@LoshnaDash 2 жыл бұрын
a&b =2 a|b = 14 a^b = 12
@kovvadapavankumar5209
@kovvadapavankumar5209 2 жыл бұрын
super explanation madam
@abdulrahimjalloh363
@abdulrahimjalloh363 Жыл бұрын
print1=2 print2=14 print3=12 print4=1
@judymuroki8869
@judymuroki8869 Жыл бұрын
In the very last example question, printf is 1 and b is 7.
@dhruvilpatel6099
@dhruvilpatel6099 Жыл бұрын
thank you ma'am😊😊😊
@RAJESHS-df8io
@RAJESHS-df8io Жыл бұрын
hi mam, nice explanation , in this video , which first prior , & ,+ , pervious video you explain high priorty each by binary.but while combination how we can identity which first for example & ,+ .
@emmyabbey91
@emmyabbey91 Жыл бұрын
This was helpful
@tps8470
@tps8470 2 жыл бұрын
Thanks a lot mam
@SadhanaSharma
@SadhanaSharma 3 жыл бұрын
16:20 output is 1
@needofrightdirectionByGajendra
@needofrightdirectionByGajendra 4 жыл бұрын
Thank you so much ma'am
@forgedinstudies5853
@forgedinstudies5853 3 жыл бұрын
Very beautifully explained 👌
@user-uu6xe5rx5m
@user-uu6xe5rx5m 3 жыл бұрын
Mam you are looking so beautiful
@sakibulhuda9440
@sakibulhuda9440 3 жыл бұрын
as it will get true and true ,ouput will be one and value of b is 6 and if it finds another b then b will be 7
@PalyamYashwanthsai
@PalyamYashwanthsai 3 ай бұрын
In last you said that b will remain 6,but wrong madam it will be 7 madam
@kumaravel1301
@kumaravel1301 4 жыл бұрын
Mam, is b+1 is a relational operator?(13:25)
@venkatsai4865
@venkatsai4865 4 жыл бұрын
It is arithmetic operator
@kumaravel1301
@kumaravel1301 4 жыл бұрын
@venkat sai ,then y mam told b+1 is relational operator (13:25)
@aalfaroque
@aalfaroque 3 жыл бұрын
arithmetic operator
@satyajitmanna8501
@satyajitmanna8501 3 жыл бұрын
I think b+1 is a arithmetic operator
@yashhokte1020
@yashhokte1020 3 жыл бұрын
@@kumaravel1301 By mistakely mam said that thing ...... there is + between two operands so it is an arithmetic operator only don't get confuse
@vinodgamer4553
@vinodgamer4553 4 жыл бұрын
mam Give suggestions to MCA students , scope is fit for software
@syedalifathimaa9618
@syedalifathimaa9618 4 жыл бұрын
b=6 Even if && is there, it didn't get incremented while executing #include int main() { int a=10,b=6,c; c=a&b&&b+1||0&&b++; printf("%d %d %d",a,b,c); return 0; } output==> 10 6 1
@syedalifathimaa9618
@syedalifathimaa9618 4 жыл бұрын
Can you tell me why?
@ja3r
@ja3r 2 жыл бұрын
@@syedalifathimaa9618 because logical && operator precident higher then logic ll operator C = a & b && b+1 || 0 && b++; C = 10 & 6 && 6+1 || 0 && b++; C = 10 & 6 && 7 || 0 && b++; C = 10 & 6 = 2 && 7 || 0 && b++; C = 2 && 7 = 1 || 0 && b++; C = 1 || 0 && b++;(logical && operator incounter 0, it will not move on b++ , it give ans 0 and b++ will not exicuted. C = 1 || 0 = 1 I hope my explanation you will understand 😊
@creatorpanel3230
@creatorpanel3230 9 ай бұрын
@@ja3r thnx bro keep it up
@pavanmurthya9482
@pavanmurthya9482 4 жыл бұрын
Mam do one more video on bitwise operator with more examples
@falconixop6994
@falconixop6994 2 жыл бұрын
All the best for your Exam 👍
@blackdog365
@blackdog365 3 жыл бұрын
Ans for three Q 2 14 12
@ramrayapati
@ramrayapati 3 жыл бұрын
@jenny's lectures.Mam please explain detailed programme like that programme
@mrakashsaha
@mrakashsaha 3 жыл бұрын
Main Video started from 2:22
@lokesh6828
@lokesh6828 Жыл бұрын
I didn't understood that why the output of b would be 6 and not 7, as precedence of increment operator is more than other operators, so logically the increment operator should be executed first and the value of b must be 7 in both && case and || case.
@vrajalingam3487
@vrajalingam3487 Жыл бұрын
i also same doubt!
@lokesh6828
@lokesh6828 Жыл бұрын
@@vrajalingam3487 I got my answer. See precedence is checked only when a operant(or any number) has more than one operator, and not checked at first for whole statement. And in case of || only first part is checked and if that part returns true then other part is not check., same in case of &&, if first part returns false, other part is not checked.
@Helly04
@Helly04 Жыл бұрын
​@@lokesh6828bro l also know that even everyone but here the main problem is when we r doin b+1 i.e 6+1=7, then value of b is updated here only & in b++ we have to consider 7 & not 6 (coz the value of b is updated in the memory after doing b+1 ) i.e why when we'll print 'b' we should get 7 but still we r getting 6 . How's that possible, l can't understand
@daydreamer_megh
@daydreamer_megh 11 ай бұрын
​​@@Helly04 Because b++ and b+1 is not the same thing, in case of b+1 the value doesn't change in the memory it just changes where it is assigned to. So if b=6, c=b+1 then c will become 7 but b will remain 6 in the question, && has higher precedence so, after initial solving the question comes to this, 1 || 0 && 6, here && will be evaluated first due to higher precedence, in logical and if first operand is 0, second one isn't evaluated final output becomes 0. So now it is 1||0, in logical or if first operand is 1, final output becomes 1, second operand isn't evaluated, so the second operand b++ was never checked in any of the steps, that's why the value of b remains 6 and the final result is 1
@SagarTadasaloor
@SagarTadasaloor 11 ай бұрын
Mam last printf statement you said that b value will be 6 it will not be 7 but if i run that program and printf("%d",b); the output is 7 not 6
@jaijaijaijai123
@jaijaijaijai123 5 ай бұрын
bitwise operators can be applied on -ve numbers
@MECH-to-IT
@MECH-to-IT 24 күн бұрын
1 and b = 6... bcoz 0 && b++ then first false then second not checked in and op.
@shwethanagaroor8949
@shwethanagaroor8949 4 жыл бұрын
At 16:23... U said to use apparends in the place of logical OR... I applied and I got ans =1. Am I right mam
@farzanaashraf8136
@farzanaashraf8136 2 жыл бұрын
Yes you are right but the value of b will not be updated, it will remain 6.
@chittuluribhuvaneswari2914
@chittuluribhuvaneswari2914 3 жыл бұрын
13:32 it's arithmetic not relational 🤔
@sreevidyam8963
@sreevidyam8963 4 жыл бұрын
Output:1 b=6
@starkendeavours7072
@starkendeavours7072 4 жыл бұрын
What mam told at the end, if we use logical AND then also the output will be 1 as 1 && 6 is 1 and since the first operand is true which is 1. so will b = 6 or 7? in next printf statement. Can u please explain?
@vaibhavsinhbihola1
@vaibhavsinhbihola1 4 жыл бұрын
b is 7 bcz in and operator first is 1 then second expression will be evaluated so in this question b is evaluated therefore b is 7
@jitendratiwari4292
@jitendratiwari4292 4 жыл бұрын
Dress++ 😎, *+beauty 🥰
@dhananjayjadhav7064
@dhananjayjadhav7064 3 жыл бұрын
Yahh😂❤️
@Mukesh-cw3tz
@Mukesh-cw3tz 3 жыл бұрын
Output of three statement are:- O 7 7
@aravindraj913
@aravindraj913 2 жыл бұрын
A&B = 2 A|B = 14 A^B = 12
@4zp207
@4zp207 2 жыл бұрын
2,14,12 is answer for what u told to answer in comment section..
@kpandeeswari6037
@kpandeeswari6037 4 жыл бұрын
First comment😍
@vikashjha6628
@vikashjha6628 2 жыл бұрын
very helpful
@jaijaijaijai123
@jaijaijaijai123 5 ай бұрын
NOTE: Precedence will come into picture only if expressions will be evaluated. In case of && or || its possible that some expressions may not be evaluated at all because we obtain 0 or 1 respectively. Hence, no matter how much higher precedence operators are there in those expressions, those expressions would never be evaluated
C_19 Operators in C - Part 7 (Bitwise Operators-II) |  C Programming Tutorials
18:20
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 36 МЛН
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН
you will never ask about pointers again after watching this video
8:03
Bitwise Operators and WHY we use them
8:41
Alex Hyett
Рет қаралды 97 М.
What's Your ENGLISH LEVEL? Take This Test!
21:31
Brian Wiles
Рет қаралды 4 МЛН
7 Outside The Box Puzzles
12:16
MindYourDecisions
Рет қаралды 202 М.
Real Madrid - Barcelona | Highlights | Final | Football | Spanish Super Cup
12:06
C_17 Operators in C - Part 5 (Logical Operators) |  C Programming Tutorials
20:51
Jenny's Lectures CS IT
Рет қаралды 260 М.
C bitwise operators 🔣
6:47
Bro Code
Рет қаралды 105 М.
Starting Competitive Programming - Steps and Mistakes
9:55
William Lin (tmwilliamlin168)
Рет қаралды 1,4 МЛН
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 36 МЛН