Increment and Decrement Operators in C (Part 1)

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

Komentáře • 178

  • @hosmjrshinh2675
    @hosmjrshinh2675 Před 4 lety +262

    This series is like Netflix to me..

  • @viveknirmal4811
    @viveknirmal4811 Před 5 lety +40

    BEAUTIFUL VOICE WITH AMAZING EXPLANATION

  • @siddhantdash4955
    @siddhantdash4955 Před 5 lety +122

    i wish i knew about your course during my college times. Really in-depth and detailed videos.. thnks!!

  • @m.irshad7082
    @m.irshad7082 Před 3 lety +32

    Wanted to brush up my C concepts during this lockdown. I looked into many videos but urs is fantastic, got to know many new things. I really appreciate your contribution to open source 😍😍

  • @johnbode5528
    @johnbode5528 Před 3 lety +12

    The behavior of x = ++a is not described correctly. It is not guaranteed that a is updated _immediately_ upon evaluation. The actual behavior is more like this:
    tmp = a + 1
    x = tmp
    a = a + 1
    except that the order in which x and a are updated isn't fixed (the operations are _unsequenced_ relative to each other; they could even be updated simultaneously). Similarly, the behavior of x = a++ is more like
    tmp = a
    x = tmp
    a = a + 1
    with the same sequencing caveat as above.
    The side effect is not guaranteed to be applied until the next sequence point; this is part of the reason why the behavior of expressions like "a++ + ++a" is _undefined_ - there is no sequence point between a++ and ++a, so the result isn't predictable.
    Another minor nit, the C language definition only refers to the prefix forms of ++ and -- as _unary_ operators (they're grouped with the indirection *, address-of &, sizeof, and sign operators + and -), while the postfix forms are grouped with the other _postfix_ operators (function call (), subscript [], member selection . and ->). Unary operators have lower precedence than postfix operators, so an expression like "++a[i]" is parsed as "++(a[i])" and "*x++" is parsed as "*(x++)".

  • @letscode5367
    @letscode5367 Před 6 lety +22

    What an explanation sir 💙. I am addicted to this course 👌👍

  • @kehindefabiyi2232
    @kehindefabiyi2232 Před rokem +4

    You make programming easier and more interesting than others. I almost quitted! Thank God I found you when the ovation was at the loudest point. What a fun way to learn programming. My only problem is that your videos make me not to sleep again. I am obsessed with them.

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

    Clear and crystal explanation .Thanks to Neso Academy

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

    Such clear explanation of every thing. Thank you so much sir.
    I saw many lectures, but I found your playlist as the most accurate.

  • @jasminjasu3140
    @jasminjasu3140 Před rokem +1

    Thank you soooooooo much. You are helping so many students like me who are paying lakhs of fees and experiencing worst lectures in college🎓. You are the real teacher👩‍🏫‍.

  • @techzsm1840
    @techzsm1840 Před 2 lety +2

    This series literally turned into Netflix to me! Just can't stop watching this!

  • @yashashreemehare1488
    @yashashreemehare1488 Před 11 měsíci +1

    One the best series on the CZcams... Thank you !!

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

    i have finally understood this concept after 5 years. tq very much. gr8 work and amazing content.

  • @rahulvibes162
    @rahulvibes162 Před 3 lety +8

    brother you really nail pre and post increment
    thanks a lot

  • @baronkalita2897
    @baronkalita2897 Před 6 lety +6

    best explanationi have ever watched,thank you so much sir

  • @Ayush37262
    @Ayush37262 Před 2 lety +2

    You are a incredible teacher!
    A very big thanks to you sir!!!

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

    Sir your videos are really helpful for basic programmers

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

    I Understand the difference b/w pre and post.....Thank you ji

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

    Thank you soo much for the detailed videos !! 🙏🏻🙏🏻

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

    You explained better than my lecturer! Thank you so much!

  • @mdghufranalam7369
    @mdghufranalam7369 Před 2 lety +2

    best explanationi have ever watched,thank you so much sir❤

  • @missionimpossible5657
    @missionimpossible5657 Před 8 měsíci

    I am currently preparing for my embedded system course for next semester, I think I am going to enjoy it🥰Thank you so much!

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

    Amazing Explaination sir ...you are great teacher
    I like your teaching ....thank you for giving your valuable knowledge

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

    Sir thanku so much for a great work you are doing for us.

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

    best explanation for lvalue nd rvalue

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

    Very well explained! Thank you

  • @FeeqAzmir
    @FeeqAzmir Před 2 lety

    This is by far the easiest method to solve increment decrement operations. tbh i am having troubles on this particular topic because it is confusing with the change of values. But when you explain the box method, i understand the concept much better now! Thank u mr Indian guy. Always a saviour to programmers

  • @MilliamKirahmuyawa-kk2lj

    I love this❤. understanding it clearly

  • @vikasbansal4180
    @vikasbansal4180 Před 2 lety

    Now, it makes the concept crystal clear.

  • @dennyage4791
    @dennyage4791 Před 2 lety

    Best tutorial on c in earth

  • @user-wh6ew5ol2s
    @user-wh6ew5ol2s Před 11 měsíci

    before i watch this video i am mad about this concept and after watching this i am perfect in this concept. thanku soooo much

  • @snehanaik406
    @snehanaik406 Před 4 měsíci +1

    Loving it....

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

    Nice content please keep it up...nd thank you so much for u r videos it always helps a lot 💕

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

    EXCELLENT EXPLAINED
    LOVE U BROTHER

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

    Well I am in second year now!
    Kaash ki ye cahannel first year me mil jata!
    Well abhi mila, is ok😊

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

    very nice explaination!!!!!!!!!!!!! i am able to clear my doubt. thanku

  • @ileshdhall
    @ileshdhall Před 8 měsíci

    Thank you so much sir, I've always faced issue in pre/post increment and decrement flow but you really explained really well.
    (PS: Studying one night before my end sems and as the videos are completing my confidence is rising as well)

  • @bts_world8259
    @bts_world8259 Před 2 lety +2

    Finally I understood pre increment and post increment.. 😓 thank you for the video

  • @dineshsingha7519
    @dineshsingha7519 Před 3 lety

    World best teacher I just love neso academy

  • @Akashprustyvlog
    @Akashprustyvlog Před 2 lety

    it is very helpful for cse student

  • @VivekMallaReddy
    @VivekMallaReddy Před 5 měsíci

    Super explanation.. Wonderful...👍👌👌

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

    Thanking so much sir for making me understand pre and post concept.

  • @nickoemmanuelvillacruz3090

    Thank you for clearing my confusion

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

    the subtitles were athing to me .❤❤❤❤

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

    Absolutely insane 🔥

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

    Thank u so much Neso Academy for this interesting and informative playlists of Operators in C

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

      Really great effort
      Even I also don't understand what our faculty teach in clg
      But this channel provide the best ❤️

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

    Wow thankuuuu so much sir thanks alot

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

    Thanks a lot❤ sir for your mind blowing explanation

  • @SatyaGarlapati-id9kg
    @SatyaGarlapati-id9kg Před 3 měsíci

    Very good lecture sir❤

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

    Thank u so much

  • @TharushiFernando-fv8bq

    wow nice teacher😍

  • @hariswaruparya373
    @hariswaruparya373 Před 3 lety

    Best explanation
    With better understanding

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

    So beautiful tips

  • @parthdandawate7245
    @parthdandawate7245 Před 3 lety

    Amazing hatts off explaination

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

    nice video in a understandable words

  • @krishsethiya1715
    @krishsethiya1715 Před 2 lety

    thanks for teaching

  • @xonexgamerz7459
    @xonexgamerz7459 Před 2 lety

    Thank you sir mujhe class me samjh nhi aaya tha your video is great sir 👍

  • @aishamudathir7847
    @aishamudathir7847 Před 2 lety

    love your videos

  • @jamaludeen2947
    @jamaludeen2947 Před 3 lety

    The deep explain best teacher great 👍🏻 bro

  • @taradean.
    @taradean. Před rokem

    hats off to you sir

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

    thank you ❤️

  • @kornmc
    @kornmc Před 2 lety

    really perfect course REALLYYYY!!!!

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

    please make a course on compiler design

  • @SalmanKhan-pu6sc
    @SalmanKhan-pu6sc Před rokem

    Post increment
    x = a;
    a = a+1;
    Pre increment
    a = a + 1;
    x = a;

  • @rafiyatabasum378
    @rafiyatabasum378 Před 3 lety

    Excellent explaination bro. Hats off.

  • @TSWSCI
    @TSWSCI Před rokem

    Thank you so much for this series

  • @rajram5241
    @rajram5241 Před 2 lety

    Nice explanation sir

  • @bhaveshpatil1424
    @bhaveshpatil1424 Před 2 lety

    Thanks Sir ☺️

  • @SaqibKhan-cy4sy
    @SaqibKhan-cy4sy Před 2 lety

    Good video I have affresiate

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

    6:00 lvalue rvalue

  • @InsideBelieve7123
    @InsideBelieve7123 Před 3 lety

    Thanks sir these videos are really helpful

  • @shehanhirudika4512
    @shehanhirudika4512 Před 2 lety

    Thank you very much... i could solve my problem ...

  • @bhoomikashetty3969
    @bhoomikashetty3969 Před 3 lety

    Your new follower 👍👍👍

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

    Good job ! 👌

  • @rakshitasharma5311
    @rakshitasharma5311 Před 3 lety

    Thank u sir for such videos.

  • @krishnashedbalkar7202
    @krishnashedbalkar7202 Před 4 lety

    What will be ans of b=a++ +a++;
    Where a=5 what will be values of a and b at the end

  • @anandkumar-ni8cn
    @anandkumar-ni8cn Před 2 lety

    Great explanation

  • @alieubah9951
    @alieubah9951 Před 3 lety

    thanks bro ,finally understood

  • @hammadmemon4739
    @hammadmemon4739 Před 3 lety

    woww best teacher ♥️

  • @kayasaxena2690
    @kayasaxena2690 Před rokem

    I'm addicted to your videos 🤤😍

  • @adnaneshtiak4817
    @adnaneshtiak4817 Před 3 lety

    Thank You So Much!

  • @sandysanarb8365
    @sandysanarb8365 Před 3 lety

    I love neso academy 🥰

  • @compangit1524
    @compangit1524 Před rokem

    Comments for myself: Lvalue (left value) means that an object should have an identifiable location in the memory, hence it must be a variable. rvalue (right value) has no identifible location in memory, e.g. expressions like (3+5). Where did the names came from? From equations. e.g. x = 3+5. (notice left and right). In the case of defining variables with values to be incremented, pre-increment adds value first before assignment, while on the other hand, post-increment assign the current value first to the variable (we can use this with equations), before incrementing the value.

  • @simrankaursandhu4589
    @simrankaursandhu4589 Před 2 lety

    Hats off to u sir👏

  • @exploratoryhub8445
    @exploratoryhub8445 Před 3 lety

    Well explained! ... Thanks sir

  • @sandysanarb8365
    @sandysanarb8365 Před 3 lety

    U r the best!!

  • @shadabalam8070
    @shadabalam8070 Před 5 lety

    Thanks sir you clear my doubt.thanks a lot.

  • @kehindefabiyi2232
    @kehindefabiyi2232 Před rokem

    Can you please make a video on debugging?

  • @sd-m3e
    @sd-m3e Před 2 lety

    Thank you sir for this amazing explanation. Sir I have a question and no answer to refer so l am confused about wha t is the right sir please sir my problem my exam is next day. If x=2 and y=3 then calculate z= (x++) +(y++)
    And z=(x--) + (y--)

  • @dramas_hub
    @dramas_hub Před 6 měsíci

    00:01 Increment and decrement operators are used to change the value of a variable by one in C.
    01:23 Increment and decrement operators are unary operators applied on a single operand.
    02:36 Increment and decrement operators in C
    04:01 L value refers to a memory location and must be a variable.
    05:19 Variables are assigned a memory location and can hold data.
    06:37 Increment and decrement operators can only be applied to variables as they require L value.
    07:53 Understanding the difference between pre-increment and post-increment operators in C
    09:25 Pre-increment assigns the incremented value to the variable, while post-increment assigns the value before incrementing to the variable.

  • @aditisharma8482
    @aditisharma8482 Před 5 lety

    Tnkyu so much .....u r the best

  • @kaushikg1833
    @kaushikg1833 Před 3 lety

    Some worthy words

  • @maahin6633
    @maahin6633 Před 4 lety

    thank u so much bro

  • @shreyashsingh3770
    @shreyashsingh3770 Před rokem

    Yess , it seems a short clip which ends in 8 minutes 😱😱 ...

  • @sumanmandal5393
    @sumanmandal5393 Před 3 lety

    Thanks Sir

  • @agamgill9563
    @agamgill9563 Před 6 lety

    Informative....thank u sr

  • @saykatamkeen7860
    @saykatamkeen7860 Před 5 lety

    awesome lecture

  • @saurabhmishra2416
    @saurabhmishra2416 Před 5 lety

    Great WORk sir

  • @amrnassar8417
    @amrnassar8417 Před 4 lety

    thanks

  • @amarnathgoshika6730
    @amarnathgoshika6730 Před 5 lety

    Nice explanation