Logical Operators | C Technical Interview Questions and Answers | Mr. Srinivas

Sdílet
Vložit
  • čas přidán 4. 09. 2024

Komentáře • 32

  • @NareshIT
    @NareshIT  Před 5 lety +2

    Please Comment, Subscribe and Click Bell🔔🔔🔔 Icon for More Updates. To learn software course from our experts please register here for online training: @t

  • @vijaya2282
    @vijaya2282 Před 6 lety +1

    Sir ur way of teaching is excellent...these videos are so helpful

  • @akashpatil9321
    @akashpatil9321 Před 6 lety

    Excellent teaching way...thanks sir

  • @bestworsteyeshadowpaletter3932

    sir awesome ..upload more video thanku so much

  • @balramjadon3556
    @balramjadon3556 Před 3 lety

    very nice explanation sir g

  • @priyanshipatel47
    @priyanshipatel47 Před 6 lety +1

    In the first statement why y value is incremented to 1? there is two increment operator one for x and one for y and it's associativity is right to left so why x value is not incremented and y will be as it is???

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

      x value will not increment because logical or operator has to return true or false. so if first one is true then no need to check the second one. That's why only y value is increment.

  • @chandrajyothibojjapu9566

    Thank you so much sit

  • @n.prasadkumar2812
    @n.prasadkumar2812 Před 7 lety +1

    nice explanation ...

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

    When i ran this program, x value is coming out to be 6? Please explain?

  • @Satyam_10
    @Satyam_10 Před 4 lety

    Nice explanation

  • @d.d.2719
    @d.d.2719 Před 3 lety

    Thank you sir🙏🙏

  • @saurabhchoudhary6529
    @saurabhchoudhary6529 Před 5 lety

    As you say Airthmetic>logical , so first execute 2+3 then logical or????
    A/C 4=4

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

    thnx

  • @ankitmishra1694
    @ankitmishra1694 Před 5 lety

    Sir, later you told that the increment and decrement operator evaluate first, alter that logical operators execute. Then why ++x will not execute

  • @anushamantri580
    @anushamantri580 Před 2 lety

    Sir , even -1(-ve number )is consider as true value?

  • @tapanjeetroy8266
    @tapanjeetroy8266 Před 6 lety

    thanks a lot sir...

  • @poseidon9856
    @poseidon9856 Před 4 lety

    Bro am the new subscriber where are u from??

  • @mohitbv2331
    @mohitbv2331 Před 7 lety

    why did the x and y values did not change?

  • @bhavnaakhileshbhaghel4186

    Sir agr y ki value 3 ho too kese hoga

  • @AnithaSree123
    @AnithaSree123 Před 3 lety

    Sir, what's the answer for 0&&1

  • @pokigamerop
    @pokigamerop Před 2 lety

    25

  • @dilipsuthar4206
    @dilipsuthar4206 Před 4 lety

    Nice

  • @harishjinka8157
    @harishjinka8157 Před 5 lety

    Sir how can u say 1 is true and 0 is false

    • @ganeshch2761
      @ganeshch2761 Před 5 lety

      Generally in programming ., 0 indicates false and 1 indicates true .................

    • @farCryStar
      @farCryStar Před 5 lety

      @@ganeshch2761 what if the value is neither 0 nor 1 ,say 5 then what will be the output 0 or 1.

    • @ganeshch2761
      @ganeshch2761 Před 5 lety

      @@farCryStar result Will be 1 because every non-zero value is indicated by 1 and only zero values are represented by 0

  • @abhishekkumaryadav213
    @abhishekkumaryadav213 Před 5 lety

    Thank you sir