Increment operator in C# (pre and post increment ) in Hindi | Pre and Post-Decrement Operator in C#

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ต.ค. 2024
  • In this video you got a concept of Increment operator.
    there are two types of increment operator
    1st) pre-increment operator
    2nd) post increment operator
    #Play_My_New_Game
    #Link_in_Description
    play.google.co...
    Connect On WhatsApp 🗨️ whatsapp.com/c...
    If You Like it than Review it , It Motivates me Lot.
    The Playlists for learning Unity3D Game development from scratch -
    • Introduction to Unity ...
    How to Begin With C# Scripting in Hindi ( Easy Way )-
    • Unity C# Scripting Tut...
    How to animate Characters in Unity ( 30 Minute Tutorial ) in Easy Way-
    • 07 Animation of Dino i...
    Make 3D View in 2D Games ( Concept of Parallax Scrolling ) in Hindi -
    • 02 Parallax Scrolling ...
    The Playlist to make Google Dino Game in HINDI -
    • 01 How to make Google ...
    Playlist to learn C# Programming from Scratch in HINDI in a easy way -
    • c # for Beginners ( In...
    Playlist to learn C Programming from beginning in Hindi ( In Very Easy Way ) -
    • What does C/C++ means ...
    Playlist Having LOGICS of C and Cplusplus Programming ( Questions asked in every Viva and Interviews) -
    • Why starting index of ...
    Difficult Questions on Increment and Decrement operator ( Generally asked in written interview Questions )-
    • Pre and Post-decrement...
    AND THERE ARE MANY SUCH VIDEOS PRESENT IN OUR CHANNEL , Which help you to grow very Fast from others.
    Just SUBSCRIBE our channel and press the Bell Icon so all the videos that I post in a weak is come to You.
    If You have any Query just ask it in Comment section , its my promise I reply You as soon as possible .
    My Gmail ID - chaturvedisuryadev1@gmail.com
    there are many questions in this which clears yours concept .
    If you like the video then like it & SUBSCRIBE to our youtube channel.
    Some tags--
    How Pre and Post Increment and Decrement Operators Work
    Overloading Decrement (--) Unary Operator in C#

ความคิดเห็น • 83

  • @LogicalProgrammer
    @LogicalProgrammer  5 ปีที่แล้ว +3

    If you got content help full
    You can support Us any amount on UPI ID: *chaturvedisuryadev1000@okicici*
    play.google.com/store/apps/details?id=com.LogicalProgrammer.GettingOverIt_AntiStressGame
    My new game is released on depression Remove on play store and please give 🌟🌟🌟🌟🌟 to it , it takes my 2 months to make it.
    And
    there are many Logical Questions that are present in this channel, which improves your skills.
    3D Game development playlist from beginning to end in Hindi-
    th-cam.com/play/PLdOT12odxrUrUjDr-Cn96m2XDtvC45n2I.html
    C Programming playlist with lots of logical Input/Output Questions -
    th-cam.com/play/PLdOT12odxrUpp1kAViL2_zXtH4iKzProe.html
    If you want to learn C#, Then watch this playlist in Hindi from beginning to end 👍🏻👍🏻
    th-cam.com/play/PLdOT12odxrUoNQeRyIZtV9gEaKmK2YRD4.html
    The most difficult topic in C/C++ Programming is to understand Increment and decrement operators, so have a watch( I promise you , you understand it very well) -
    th-cam.com/play/PLdOT12odxrUp9S_9-vFkRG5Jwnm2UCkGw.html
    If you face difficulty in Binary pattern printing , then watch this -
    th-cam.com/play/PLdOT12odxrUqMMGBlG9svpPJa2GhFxho7.html
    1) Why starting index of array starts with zero ?
    th-cam.com/play/PLdOT12odxrUpPnyt0_pIExjcxEe0Q7pfd.html
    2) Pattern Printing inC ( Like Heart shape pattern, smily face patterns,etc in Hindi)
    th-cam.com/play/PLdOT12odxrUoKT8qECkq7X9DJ4jJ8S2L1.html
    3) Many Input Output Questions-
    th-cam.com/play/PLdOT12odxrUoJsiFMTY8zsRCunxtwAEu1.html
    4)How to produce sounds in C-
    th-cam.com/play/PLdOT12odxrUrkgVNApd7Pv1nQXrgni_Jz.html
    5)Shift Operator in C-
    th-cam.com/play/PLdOT12odxrUr71OvuS8-JcC4aXHZJckBS.html
    6) Google Dino Game in Hindi in Unity-
    th-cam.com/play/PLdOT12odxrUrzCwReJS7v0C5dG6Q7Uz_F.html
    and many more...

    • @chhotipatel5670
      @chhotipatel5670 2 ปีที่แล้ว

      a= 5
      b=a++
      b=++a
      b=a
      b=--a
      b=a--
      b= a=
      Plz slow mee bri🙏

    • @pushprajgupta-tv3gx
      @pushprajgupta-tv3gx ปีที่แล้ว

      bhai tumhara wrong answer hai == int a,b=1 correct answer a=3 b=6 and your answer was a=3, b=5 how ??

  • @Everday_is_new
    @Everday_is_new 6 หลายเดือนก่อน +1

    Thanks Brother, after 1 week struggle I understood now...

  • @rahulsen002
    @rahulsen002 2 ปีที่แล้ว +9

    Thanks Bhai .. 15 saal se clear nahi hua .. aaj ho gaya 😅

  • @jnislamscienceacademy8288
    @jnislamscienceacademy8288 8 หลายเดือนก่อน +1

    Pre increment pre increment me value a=3+3 hona tha according to your last video

  • @mirzalisha24_dz
    @mirzalisha24_dz ปีที่แล้ว

    Thank you so much bhaiya🙏
    I had read this concept many times but was not able to understand and solve the question
    But now I am able to solve the questions by myself.

  • @rimshaiqbal1564
    @rimshaiqbal1564 3 ปีที่แล้ว +1

    To much easy technique 👌 💐

  • @bipugamer1364
    @bipugamer1364 11 หลายเดือนก่อน +1

    Increment decremwnt operator ke sath kam se kam 50 question solve wala video banaou nahi to bohot confuse ho raha he

  • @krishnapathak9165
    @krishnapathak9165 3 ปีที่แล้ว +5

    Bro you teach very well
    Keep it going and you will reach the sky.

  • @anweshabiswas19
    @anweshabiswas19 2 ปีที่แล้ว

    Thank you so much love you bhaiyaa🥰 pura clear hogeya concept

  • @brahmanandasahoo9474
    @brahmanandasahoo9474 2 ปีที่แล้ว

    Sir your teching style is osm and very good teaching but practice is more important for us

  • @ajitsinghprime2239
    @ajitsinghprime2239 2 ปีที่แล้ว +1

    Very nice video 🙏

  • @historytravelbangla6143
    @historytravelbangla6143 4 ปีที่แล้ว +1

    Aapka bohot bohot shukriya.....itna accha se samjhaya apne ne.....love u bhaiya

    • @LogicalProgrammer
      @LogicalProgrammer  4 ปีที่แล้ว

      Thanks for your feedback💖💖
      play.google.com/store/apps/details?id=com.LogicalProgrammer.GettingOverIt_AntiStressGame
      My 2nd game is released play it and give 🌟🌟🌟🌟🌟 to it , it takes my w months to make it.
      And
      there are many Logical Questions that are present in this channel, which improves your skills.
      1) Why starting index of array starts with zero ?
      th-cam.com/play/PLdOT12odxrUpPnyt0_pIExjcxEe0Q7pfd.html
      2) Pattern Printing inC ( Like Heart shape pattern, smily face patterns,etc in Hindi)
      th-cam.com/play/PLdOT12odxrUoKT8qECkq7X9DJ4jJ8S2L1.html
      3) Many Input Output Questions-
      th-cam.com/play/PLdOT12odxrUoJsiFMTY8zsRCunxtwAEu1.html
      4)How to produce sounds in C-
      th-cam.com/play/PLdOT12odxrUrkgVNApd7Pv1nQXrgni_Jz.html
      5)Shift Operator in C-
      th-cam.com/play/PLdOT12odxrUr71OvuS8-JcC4aXHZJckBS.html
      6) Google Dino Game in Hindi in Unity-
      th-cam.com/play/PLdOT12odxrUrzCwReJS7v0C5dG6Q7Uz_F.html
      and many more...

  • @mr.insanegenius666
    @mr.insanegenius666 ปีที่แล้ว

    hello sir your teaching is so good and so easily understantable but in this video initially you confused just because by writing content on wrong side

  • @Altaf_223
    @Altaf_223 4 ปีที่แล้ว +1

    Bahot axha treqa ha pardhnay sir good

  • @abhishekchouhan2122
    @abhishekchouhan2122 2 ปีที่แล้ว

    Thank you so much sir ❣️❣️❣️❣️🤗

  • @shalinisingh1446
    @shalinisingh1446 3 ปีที่แล้ว +1

    Very nice

  • @shikhasinghal9958
    @shikhasinghal9958 5 ปีที่แล้ว +3

    Sir Aapne last video me a=1,
    B=++a + ++a=6 diya hua h but isme 5 diya h , usne Aapne phle last me value assign ki thi but isme next operator se phle value assign kar di .
    Pls clear my doubt.

    • @LogicalProgrammer
      @LogicalProgrammer  5 ปีที่แล้ว +1

      Because
      Beginning me ham 2 operands per work kar rhe te or last me ham 3 operands per work kar rhe he.
      Or jab
      a=1;
      b = ++a + ++a;
      To a=3 hoga & b=5 ;
      Please watch the video again & you clear your doubt.

  • @satendraagnihotri6284
    @satendraagnihotri6284 5 ปีที่แล้ว +2

    Extremely helpful

  • @ananttechknowledge9251
    @ananttechknowledge9251 4 ปีที่แล้ว +2

    Your channel is grow soon
    You are great.
    I am want to become a good Hacker .
    Please make a video on hacking

  • @poojajhaxarollno.2053
    @poojajhaxarollno.2053 3 ปีที่แล้ว

    Thank u sir

  • @ashwini5775
    @ashwini5775 3 ปีที่แล้ว +1

    But, should follow right to left associvity right?

  • @hussarmy8928
    @hussarmy8928 10 หลายเดือนก่อน

    Op🎉🎉

  • @ashishbisht6857
    @ashishbisht6857 ปีที่แล้ว

    Bhot shi

  • @jayanshi_dairy1
    @jayanshi_dairy1 ปีที่แล้ว

    👍

  • @manyagupta109
    @manyagupta109 5 ปีที่แล้ว +1

    Sir but in turboc++ the answer came from b= a++ +a++ is a=3,b=2 why ?? Clear my doubt

    • @LogicalProgrammer
      @LogicalProgrammer  5 ปีที่แล้ว +1

      Because Increment & Decerment operator is Compiler dependent.
      Different Compiler Gives different answer.
      In Code blocks it is different.
      This is the concept of Visual Studio.

    • @sobianoman841
      @sobianoman841 2 ปีที่แล้ว

      Yes u r right.. But if different compiler give different output than why we say C is standardised language? Juz a question with due respect

  • @01.abhishekkumar33
    @01.abhishekkumar33 3 ปีที่แล้ว

    Sir apne tin tak bataya ki do ka bracket lekar chalege ,five increment operators rahega to kaise karege,do do bracket lekar chalege kya ,sir ye doubt mera clear kar dijiye

    • @LogicalProgrammer
      @LogicalProgrammer  3 ปีที่แล้ว

      Ha tab bi do ka lekar chalege

    • @01.abhishekkumar33
      @01.abhishekkumar33 3 ปีที่แล้ว

      @@LogicalProgrammer sir ,thanks for your answer , but sir galt aaraha hai

    • @01.abhishekkumar33
      @01.abhishekkumar33 3 ปีที่แล้ว

      @@LogicalProgrammer a++ + ++a + ++a + a++ + ++a ,,ye combination jab kiye to galt aaya ,sir please solve this

    • @01.abhishekkumar33
      @01.abhishekkumar33 3 ปีที่แล้ว

      @@LogicalProgrammer i have verified this in vs code sir ,thats why i am saying sir ,i have a proof

    • @01.abhishekkumar33
      @01.abhishekkumar33 3 ปีที่แล้ว

      Sir please reply

  • @ABHIJITDAS-ug2xd
    @ABHIJITDAS-ug2xd 5 ปีที่แล้ว +1

    Wow..... Very very nice video sir,

    • @LogicalProgrammer
      @LogicalProgrammer  5 ปีที่แล้ว +1

      Thanks bro
      If you like Game development then SUBSCRIBE to my channel & Support me.
      Bcoz I starts Game development Course in Unity 👌

  • @__Kuch_Bhi___
    @__Kuch_Bhi___ 9 หลายเดือนก่อน

    👍🙂

  • @puneetkakkar8714
    @puneetkakkar8714 4 ปีที่แล้ว +3

    LOVE U YAR. IF U DON'T TEACH ME I WOULD GET FAIL IN MY EXARM

    • @LogicalProgrammer
      @LogicalProgrammer  4 ปีที่แล้ว +1

      Welcome, if you think my tutorials helps you than share these with your friends that helps me.💖💖

  • @darshanjaviya4770
    @darshanjaviya4770 3 ปีที่แล้ว

    If such kind of questions are asked in gate than what is the correct answer as codeblocks and visual studio gives different answers. Do they clarify it in the gate exam?

    • @LogicalProgrammer
      @LogicalProgrammer  3 ปีที่แล้ว

      I also give gate exam and do all previous questions of gate.
      They never ask a difficult question on this topic.

    • @darshanjaviya4770
      @darshanjaviya4770 3 ปีที่แล้ว

      Can you give me difficulty lavel on a scale of 10 cause I am preparing for it

  • @anupamrana4239
    @anupamrana4239 3 ปีที่แล้ว +1

    helpful

  • @prabinshahi2105
    @prabinshahi2105 2 ปีที่แล้ว

    😘😘😘😘

  • @hemantgupta5464
    @hemantgupta5464 5 ปีที่แล้ว +1

    Sunder

    • @LogicalProgrammer
      @LogicalProgrammer  5 ปีที่แล้ว +1

      We are starting Game development in Unity in Hindi as soon as possible, if u interested in game development so Subscribe to our channel 🔔.

  • @cheethacheetha4876
    @cheethacheetha4876 2 ปีที่แล้ว

    Sir i=3 and j=4
    i++ - j - -
    Whether the answer is 1 sir ..pls reply sir😣

  • @bidhanchakraborty3783
    @bidhanchakraborty3783 3 ปีที่แล้ว

    Tuanku bhai 🔥🔥

  • @vishaluchiya2765
    @vishaluchiya2765 3 ปีที่แล้ว

    Yehh bhai i got

  • @shonkijatt6294
    @shonkijatt6294 4 ปีที่แล้ว +1

    Good bro🖒🖒🖒🖒🖒🖒

    • @LogicalProgrammer
      @LogicalProgrammer  4 ปีที่แล้ว

      Thanks for your feedback💖💖
      there are many Logical Questions that are present in this channel, which improves your skills.
      1) Why starting index of array starts with zero ?
      th-cam.com/play/PLdOT12odxrUpPnyt0_pIExjcxEe0Q7pfd.html
      2) Pattern Printing inC ( Like Heart shape pattern, smily face patterns,etc in Hindi)
      th-cam.com/play/PLdOT12odxrUoKT8qECkq7X9DJ4jJ8S2L1.html
      3) Many Input Output Questions-
      th-cam.com/play/PLdOT12odxrUoJsiFMTY8zsRCunxtwAEu1.html
      4)How to produce sounds in C-
      th-cam.com/play/PLdOT12odxrUrkgVNApd7Pv1nQXrgni_Jz.html
      5)Shift Operator in C-
      th-cam.com/play/PLdOT12odxrUr71OvuS8-JcC4aXHZJckBS.html
      6) Google Dino Game in Hindi in Unity-
      th-cam.com/play/PLdOT12odxrUrzCwReJS7v0C5dG6Q7Uz_F.html
      and many more...

  • @helloim7705
    @helloim7705 ปีที่แล้ว

    In did it in online GDP
    X=14;
    Y=- -x+ - - x
    Ans Is y=24;
    How bro

    • @codingshorts7480
      @codingshorts7480 ปีที่แล้ว

      ya bro same I also do that on online GDB

  • @abdelillahopsdev4346
    @abdelillahopsdev4346 4 ปีที่แล้ว +3

    in dev c++ 8:56 a=9 not a=8 ??

    • @LogicalProgrammer
      @LogicalProgrammer  4 ปีที่แล้ว +2

      Because Increment and decrement operators are compiler dependent .
      In this video I am explaining about Visual Studio and in another video I explained the concept in Code Block.
      And dear Here I am explaining the concept of C# not C++.
      I know you are disappointed, but this is true every compiler gives different results on solving these 2 operators.
      Many developer says in C++ CodeBlocks become first choice and for C# Visual Studio, that's what I make tutorials on both.

    • @abdelillahopsdev4346
      @abdelillahopsdev4346 4 ปีที่แล้ว +1

      @@LogicalProgrammer ok thanks

  • @venkatramana331
    @venkatramana331 4 ปีที่แล้ว

    3:49 Bro how is a=1 here and b=2 ? i thougth the result would be vice versa,
    i mean a=2, b=1. pls clarify

    • @LogicalProgrammer
      @LogicalProgrammer  4 ปีที่แล้ว +3

      Explanation of your doubt-
      In 1st question I write.
      int a , b = 1;
      a = b++;
      and b++ is post increment operator, Jo apni value 1 step ke baad increase karta he.
      means ( a= b++ ) vali line 2 steps me complete hogi.
      1st) a = b;
      2nd) b = b+1;
      to is vajy se a = 1 and b = 2 hoga.
      agr aapko confusion ho to aap ye video dekh li jiy beginning sirf, because Increment and decrement operators are compiler dependent ( Means alg compiler pr alg answer aata he .
      but jo aapka doubt he vo basic he( Is question ka answer sare compiler pr same aayga).
      The concept is explained according to Code Blocks Compiler-
      th-cam.com/video/XKPPLdKZIYs/w-d-xo.html

  • @shubhampandey1073
    @shubhampandey1073 4 ปีที่แล้ว +1

    bro if a=10 then b=++a + ++a + ++a answer is 39 not mathcing the rule

    • @shubhampandey1073
      @shubhampandey1073 4 ปีที่แล้ว

      bro can u tell the solution plz

    • @LogicalProgrammer
      @LogicalProgrammer  4 ปีที่แล้ว +3

      In this question.
      The Compiler update the value of a one by one , at the end.
      The value of a is 13 and puts every where where a comes.
      And b = 13 + 13 +13.
      b=39.

    • @shubhampandey1073
      @shubhampandey1073 4 ปีที่แล้ว +1

      @@LogicalProgrammer thanks bro but so confusing rules

  • @usmanbabar1858
    @usmanbabar1858 หลายเดือนก่อน

    Ap is that ki video bna le or
    😢

  • @maazajaz1944
    @maazajaz1944 2 ปีที่แล้ว

    my ques
    if a= 4
    b = (++a) - (a++) + (++a) + (++a) - (- - a)
    can anyone solve?

  • @mr.insanegenius666
    @mr.insanegenius666 ปีที่แล้ว

    i don't think you understood but don't repeat it

  • @anuchaudhary5275
    @anuchaudhary5275 5 ปีที่แล้ว

    in case of increment and decrement oparators the associavity rule is from right to left

    • @LogicalProgrammer
      @LogicalProgrammer  5 ปีที่แล้ว +1

      In case of Pre - Increment and Pre - Decrement Operator the associativity is from -( Right to Left ) and in Case of Post -Increment and Post - Decrement Operator , the associativity is from Left to Right.

    • @shivaprasad3606
      @shivaprasad3606 5 ปีที่แล้ว +1

      @@LogicalProgrammer what is the Associativity rule if there are pre and post increment opeartors?? Left to right or right to left??

    • @LogicalProgrammer
      @LogicalProgrammer  5 ปีที่แล้ว +1

      @@shivaprasad3606
      As per me it's Left to Right. How Question is Solved & I also Searched many websites but I can't found the perfect answer for both.
      How I solved is from Left to Right, when both are present.

    • @noormuhammad2573
      @noormuhammad2573 10 หลายเดือนก่อน

      So that's why answer was incorrect
      @@LogicalProgrammer

  • @zainakram4
    @zainakram4 4 ปีที่แล้ว +1

    Bro dev c++ ma to ans different a rahy hain a ke value k dev c++ pa program ko run kr k dekhao

    • @LogicalProgrammer
      @LogicalProgrammer  4 ปีที่แล้ว

      Because Increment and decrement operators are compiler dependent .
      In this video I am explaining about Visual Studio and in another video I explained the concept in Code Block.
      And dear Here I am explaining the concept of C# not C++.
      I know you are disappointed, but this is true every compiler gives different results on solving these 2 operators.
      Many developer says in C++ CodeBlocks become first choice and for C# Visual Studio, that's what I make tutorials on both.

  • @sammitiwari9082
    @sammitiwari9082 28 วันที่ผ่านมา

    Sir samja nahi aa raha tha