Logical Operators in C

Sdílet
Vložit
  • čas přidán 27. 08. 2024
  • C Programming & Data Structures: Logical Operators in C
    Topics discussed:
    1. Types of logical operators in C:
    a. AND operator.
    b. OR operator.
    c. NOT operator.
    2. Concept of short circuit in logical operators.
    3. Example codes of logical operators.
    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 #LogicalOperators

Komentáře • 179

  • @naurinsultana1166
    @naurinsultana1166 Před 4 lety +245

    Believe me u r the best teacher ever available on CZcams for learning C

  • @Anand14527
    @Anand14527 Před 3 lety +20

    I can bet no one can explain these concepts in this much ease.. I have watched some other youtuber videos of these topics but ur explaination and examples are much easy to get..

  • @spaceembassy365
    @spaceembassy365 Před 2 lety +16

    I am glad I have found this beautiful channel very early,I searched a lot of channels but never satisfied with those explanation,but your teaching and presentation is so wonderful and very beginner friendly

  • @muskansaini1034
    @muskansaini1034 Před 3 lety +5

    now I am enjoying c language...................all thanx to u Neso academy

  • @logikalindia
    @logikalindia Před 3 lety +3

    you are the great teacher i have ever seen on youtube ...very beautyful technique of teaching in a great way salute your

  • @moneshsoni6151
    @moneshsoni6151 Před 4 lety +40

    after watching this my all doubt is clear in logical operator

  • @metehansimsek3812
    @metehansimsek3812 Před 2 lety +4

    Sir, I want to appreciate you. You are the best teacher I ever seen in CZcams.

  • @vishalyadav067
    @vishalyadav067 Před 3 lety +24

    I am paying fees for c language in my college but i did not understand (deep learning what is real concept behind the all operators work), but this channel i got everything what i needs , all concepts behind c programme is clear , thank you so much sir one of the best teacher for c language in you tube.....👍👍👍🙏

    • @Coderyian
      @Coderyian Před 9 měsíci

      HAVE YOU LEARNED ALL THE CONCEPTS OF C LANGUGE...😕

  • @harshjain1291
    @harshjain1291 Před 4 lety +13

    in "short circuit in case of OR" if we put (b++) before (a>b) then (++b) will be evaluated and value of b will become 4

    • @yenzyhebron5278
      @yenzyhebron5278 Před 3 lety

      * b++

    • @nikhilmhaske7206
      @nikhilmhaske7206 Před 2 lety +1

      What is a =! b ???
      Can any one help ???

    • @duggirambabu7792
      @duggirambabu7792 Před 2 lety +1

      @@nikhilmhaske7206
      If *b is TRUE* then *a is FALSE,* otherwise *a is TRUE.*
      *Note:*
      FALSE denotes 0.
      TRUE denotes non-zero value.

  • @DivyaS-qs2sp
    @DivyaS-qs2sp Před 3 lety +3

    No words to express your teaching it's really really awesome

  • @NonTravelersDiary
    @NonTravelersDiary Před 5 lety +8

    sir you're way of teaching is really nice and easy thanx for the video sir

    • @khaledali5423
      @khaledali5423 Před 4 lety

      Janvi Sharma lojuhhjdmkdkiidkrkkrorieireorkrororrororrririiekjdkdoriiiiįo

  • @mohammedalthaf4826
    @mohammedalthaf4826 Před 4 lety +7

    Good explanation
    Give us full one tutorial video in C , C++ and Java
    Thank you 👍

  • @abdulsamadsoomro3831
    @abdulsamadsoomro3831 Před 3 lety +2

    Strongly agree with you sir
    First time got to like you hardworking teacher
    Proud on you

  • @reneezmp
    @reneezmp Před 2 lety +3

    Your rexplanation was very enlightening . Thank you so much for sharing this, it was really useful.

  • @sarder681
    @sarder681 Před rokem +1

    you deserve n Million subscriber and like.legend you are bro! from Bangladesh.

  • @davidalvarez3828
    @davidalvarez3828 Před 3 lety +3

    man thank you you explain better than other videos thx

  • @navjotsingh8372
    @navjotsingh8372 Před 5 lety +9

    Sir you clear the concepts on a hyper level.

  • @zeesuroyalist4701
    @zeesuroyalist4701 Před rokem +3

    Sir agar app yahi chij Hindi me explain kiye hote to ajj Mera dil bhi apko dua deta rehta 🙂

  • @sudiptamondal2347
    @sudiptamondal2347 Před rokem +1

    in the short circuit of OR operator the b value still gets incremented. compiler checks it and incremented the value.

  • @gyangaha109
    @gyangaha109 Před 3 lety +6

    I'm learning python. But after watching your channel I've an inclination to learn C :D

  • @kaminidhiman4989
    @kaminidhiman4989 Před 3 lety +1

    Very helpful video
    You are a very good teacher sir

  • @Jkt61205
    @Jkt61205 Před 4 lety +1

    Neso Academy you are the best and sir you are teaching wonderful.

  • @kavitaanand8005
    @kavitaanand8005 Před 4 lety +4

    Thnk you for explaining in such a way that I made my confusion clear 😇

  • @invincible6230
    @invincible6230 Před 10 měsíci +1

    Wow, So in depth knowledge,Thanks!!

  • @coolestkidinafrica8660
    @coolestkidinafrica8660 Před 2 lety +6

    wonderful explanations. what do i do to obtain some practice exercises of yours?

  • @mdtanvirahmmed9351
    @mdtanvirahmmed9351 Před 5 lety +3

    thanq you sir ..your teaching method is so good

  • @benzox9940
    @benzox9940 Před 4 lety +2

    How i wish you were programming lecturer when i was in india

  • @128_shravanimulik9
    @128_shravanimulik9 Před 4 lety +2

    Sir i really like your videos the way you explain is just😍😍

  • @golammuktadir4355
    @golammuktadir4355 Před 3 lety +4

    Every college student must see this lecture before the examination.

  • @WA-sf3kg
    @WA-sf3kg Před 6 lety +8

    👏👏👏 thank you

  • @shwetamishra3835
    @shwetamishra3835 Před 2 lety +1

    What everyone saying is actually true .Sir you have really clear every concept on this topic

  • @shwetasingh7
    @shwetasingh7 Před 3 lety +2

    best explanation possible. thankyou sir 🙂🙏

  • @karanbhakuni8051
    @karanbhakuni8051 Před 10 měsíci

    the best lecture for logical operator and first time got to short circuiting exists in c also

  • @adambarbour6133
    @adambarbour6133 Před rokem +1

    Great video

  • @deepakbhardwaj3141
    @deepakbhardwaj3141 Před 6 lety +5

    Sir upload more lectures your students are waiting........

  • @sahidgamer8165
    @sahidgamer8165 Před 2 lety +1

    Very helpful 👍 teacher i like this teacher

  • @Aaftab12005
    @Aaftab12005 Před 4 dny

    Best Explanation and very nice

  • @compangit1524
    @compangit1524 Před rokem +1

    Comments for myself: Short circuit is when other expressions will not get evaluated anymore since the return value from the operator is already in its final form e.g. || finding a true expression. If an expression returns a value other than 0, then it is considered true (yes even if it returns negative value).

  • @lucasjohn3014
    @lucasjohn3014 Před 4 lety +1

    very nice tutorial

  • @JJJJ-gl2uf
    @JJJJ-gl2uf Před rokem +1

    Good work. Thanks.

  • @AjeetKumar-mo6xt
    @AjeetKumar-mo6xt Před 3 lety +1

    there was exactly a similar question in GATE 2021 CS 1st paper , Thanks to NESO.
    on short circuit concept.

    • @Coderyian
      @Coderyian Před 9 měsíci

      hey brother , have you qualified GATE exam or not....

  • @rahuldevdutta3258
    @rahuldevdutta3258 Před 4 lety +1

    Nice sir 👌
    You are good teacher.

  • @anirbansaha-cp9pw
    @anirbansaha-cp9pw Před 4 měsíci

    You are Genius Sir ❤.. Hat's off 🙏

  • @shaziaansari1197
    @shaziaansari1197 Před 4 měsíci

    Crystal clear explanation dear sir 🔮🔮🔮🔮🔮 ❤❤❤❤❤

  • @tayyab.sheikh
    @tayyab.sheikh Před 7 měsíci +1

    I regret I missed your videos 😢

  • @HanifudinFirmansah
    @HanifudinFirmansah Před 28 dny

    Thank you so much. I want to download this.

  • @shriganeshayenamah3422
    @shriganeshayenamah3422 Před 2 lety +1

    Thank You sir❤

  • @-MustakimMusa
    @-MustakimMusa Před 6 měsíci

    #include
    int main() {
    // Write C code here
    int a=5, b=3;
    int inc;
    inc=(a

  • @karancontractor586
    @karancontractor586 Před 3 lety +2

    THANK U SO MUCHHHH GOT MY DOUBT CLEARED

  • @mikeorioles
    @mikeorioles Před 2 lety +1

    Excellent video. Thank you!

  • @sahilpandey1757
    @sahilpandey1757 Před rokem

    One of the best explanations
    Thank you sir

  • @poojareddy4356
    @poojareddy4356 Před 4 lety +1

    Thank you . I learnt it v well . 👍

  • @jahzielperalta484
    @jahzielperalta484 Před 3 lety +3

    Finally thank u so much!

  • @shashankda2002
    @shashankda2002 Před rokem +1

    Thank you boss

  • @abdullahzafar1862
    @abdullahzafar1862 Před 4 lety +2

    can we use arthimatic operators as the condition. for example the condition is c=a+b. i declared the integers and assigned them a value. yet there was a compiler error

    • @hmm1778
      @hmm1778 Před 2 lety

      Use (==) cause = is assignment operator and not relational

  • @mohammedjafaraqiq2119
    @mohammedjafaraqiq2119 Před 2 lety

    You teach the Best.... hats off sir

  • @karunkota5660
    @karunkota5660 Před 3 lety +1

    Thanx

  • @user-jk7fx3hz4k
    @user-jk7fx3hz4k Před 2 lety +1

    Thank you sooo much

  • @stack-dhruv
    @stack-dhruv Před 3 lety +1

    Nice explanation sir.

  • @EfeAikpokhio
    @EfeAikpokhio Před 2 lety

    Holy wow this was explained so well Thank you for your service 👏🏽

  • @sonusambharwal8828
    @sonusambharwal8828 Před 4 lety +2

    Outstanding sir

  • @jitheshrajm3091
    @jitheshrajm3091 Před 3 lety +1

    Good Explanation ❤️

  • @Abhishek-1966
    @Abhishek-1966 Před rokem +2

    U write printf("%d",b); cant we also or when do we write printf("b=%d",b); Whats the difference ???

  • @yasameenmohammed4655
    @yasameenmohammed4655 Před 4 lety +1

    Thank you

  • @Lws-360
    @Lws-360 Před 3 lety

    int a=5; b=-20;
    int incr=(a

  • @crazy_champ547
    @crazy_champ547 Před rokem

    Thank you for the session very useful vdo for me 🙏😇💕

  • @sarojkumardas3640
    @sarojkumardas3640 Před 4 lety +1

    Fan bangaya sir💟💟💟💟

  • @vaibhavgurav6291
    @vaibhavgurav6291 Před 2 lety

    Thank you sir I am easy to understand.

  • @wayneitaru
    @wayneitaru Před 11 měsíci

    That very clear thanks

  • @pandayadav9789
    @pandayadav9789 Před 2 lety +1

    Nice bro

  • @jerryp2433
    @jerryp2433 Před rokem +1

    So simple yet so confusing. My head hurts.

  • @ezeobidiclementina6444
    @ezeobidiclementina6444 Před 11 měsíci

    How do we know when to apply the concept of short circuit and when to evaluate all conditions respectively

  • @anuradhasharma4814
    @anuradhasharma4814 Před 2 lety +1

    Hats off

  • @staisahijam6776
    @staisahijam6776 Před 2 lety

    Thankyou very much Sir

  • @sajii.8217
    @sajii.8217 Před 3 lety

    Thank you so much for give such a nice lecture

  • @natashaganjoo4464
    @natashaganjoo4464 Před 5 lety +1

    Given i=4, j=-1, k=0
    y=i+5 && j+1 || k+2
    Why the output is 1?

  • @ashishsinha8893
    @ashishsinha8893 Před 6 lety +2

    sir update videos Sir plz our placement start from July sir plz make videos with some speed...

  • @hassanraza8716
    @hassanraza8716 Před 4 lety +2

    Thank sir

    • @AjayKumar-tg2wi
      @AjayKumar-tg2wi Před 4 lety

      You can check my lectures if you really want to learn coding.. Check my video of logical operators.

  • @Sanketda
    @Sanketda Před 5 lety +1

    Thank You !!!

  • @Nawrajkumar
    @Nawrajkumar Před rokem

    hello sir,,, thanks for this impotant video
    🎉🎉🎉🎉🎉🎉

  • @valerieman1892
    @valerieman1892 Před 4 lety +1

    So logical operators are logical connectives/ quantifiers that express relationships between statements?

  • @sparrowp2251
    @sparrowp2251 Před 3 lety

    They are great ! Vedios.

  • @alieubah9951
    @alieubah9951 Před 3 lety +1

    cout

  • @cookwithana5046
    @cookwithana5046 Před 2 lety

    Thanks it helped me a lot

  • @ezraakran7158
    @ezraakran7158 Před 3 lety +1

    So these statement can only render true and false?

  • @dotzetwenty2491
    @dotzetwenty2491 Před 3 lety

    very clear ..thanks bro

  • @ganeshgauttam
    @ganeshgauttam Před 2 lety

    Nice explanation 👍😊

  • @keshavchaturvedi4015
    @keshavchaturvedi4015 Před 3 lety +1

    at 9:24 what if b was -1 then by increment it will become 0 so condition will be true or false?

  • @Spypop96
    @Spypop96 Před rokem +1

    Shortcut method for Not operator is not Explained sir .. why??

  • @yourlinuxguy
    @yourlinuxguy Před 2 lety

    Good videos, keep this UP!!

  • @essskeritt3173
    @essskeritt3173 Před 2 lety

    Thank you so much :)

  • @vikasbansal4180
    @vikasbansal4180 Před 2 lety

    What a concept🙌

  • @expertphysics
    @expertphysics Před 6 lety

    Thankyou

  • @dnyaneshwarbarsagade3206

    Plz video give on file handling concept with examples

  • @Learner.x.Achiever
    @Learner.x.Achiever Před 10 měsíci +2

    5:10

  • @chandrajyothibojjapu9566

    Thank you so much sir

  • @nitinjain9683
    @nitinjain9683 Před 5 lety

    b++ should give four in incr variable expression

  • @anuragyadav5453
    @anuragyadav5453 Před 6 lety

    Please tell me ,,,reference book for analog electronics which you prefer

  • @grogu17
    @grogu17 Před 3 lety

    wow that was really clear

  • @agratagupta8712
    @agratagupta8712 Před 2 lety

    SIR, in OR logical operator in the given example, when I put all the condition is false but still, it shows a print statement .why?