C++ Increment and Decrement Operators | CPP Programming Video Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 ก.ย. 2024
  • In this c++ / cpp programming video tutorials / lecture for beginners video series, you will learn the increment and decrement operators.
    you will learn what are increment and decrement operators , how to use increment and decrement operators,using increment and decrement operators as postfix and prefix in detail with example.
    Visit www.LearningLad... to get the SOURCE CODE of this tutorial and to watch more free computer programming video tutorials.
    Learn Programming in HINDI at our youtube channel
    / learningladhindi
    Catch us on Social Media
    / learninglad
    www.google.com/...
    / learningladedu

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

  • @ashitpoojary1049
    @ashitpoojary1049 9 ปีที่แล้ว +51

    ye=ye + one and ye -- and ye=10

  • @Majorquantum
    @Majorquantum 9 หลายเดือนก่อน +2

    I love it. I have gone through 4 youtube tutorials I have 8 books. I have done online work. This is my favorite so far. So short sweet and you explain things very well. Great Job.

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

      Wow, thank you!

  • @avila612
    @avila612 7 ปีที่แล้ว +1

    Reached a good development level in python a few months ago. Decided to move on to C++ this has been the best tutorial C++ tutorial ive found thank you.

    • @LearningLad
      @LearningLad  7 ปีที่แล้ว

      pleasure.
      keep Learning :)

    • @Rudraj-if5jz
      @Rudraj-if5jz 3 หลายเดือนก่อน

      How is it... After 6 years?

  • @ChaudharyClubers
    @ChaudharyClubers 9 ปีที่แล้ว +10

    Great learning material provided with a super efficiant teaching style by Mr.Anil...specially for the beginners of CPP.
    May Allah bless on you dear Anil..keep it up...

    • @LearningLad
      @LearningLad  9 ปีที่แล้ว +1

      Naeem Chaudhary
      thank you :)

    • @ChaudharyClubers
      @ChaudharyClubers 9 ปีที่แล้ว +1

      You are always Welcome bro

  • @calisquid7847
    @calisquid7847 6 ปีที่แล้ว +14

    This was a very good tutorial, thank you mr yay

    • @Rudraj-if5jz
      @Rudraj-if5jz 3 หลายเดือนก่อน

      Good one 🤣

  • @christopherchavez895
    @christopherchavez895 5 ปีที่แล้ว +4

    Perfect and simple video. Answered my question completely. Well done. Thanks.

  • @pankajver26
    @pankajver26 9 หลายเดือนก่อน +1

    After so many searches of postfix and prefix videos on yt finally understand by yours video❤

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

      glad my video helped you :)

  • @SaintHood357
    @SaintHood357 3 ปีที่แล้ว +2

    Thank you very much!!! Reading this in my C++ book left me confused. This explanation was simple and to the point.

  • @kevinjustinmbote999
    @kevinjustinmbote999 9 ปีที่แล้ว +79

    int yay! :))))

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

    Thank you as I've watching more than 5 tutorials today😅 and left I'll watch tomorrow.....and more

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

      Awesome
      Keep learning :)

  • @x-hale820
    @x-hale820 3 ปีที่แล้ว +1

    It helped me now in 2021
    Thanks, buddy

  • @seankang8318
    @seankang8318 6 ปีที่แล้ว +1

    best explanation of post/prefix for a newbie like me. thumbs up!

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

    THIS VIDEO HELPS A LOT FOR BEGINNERS LIKE ME

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

      keep learning :)

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

      @@LearningLad i watch and learn from all of ur videos will it enough for me good marks in BOARD exams

  • @aakankshachaudhary7524
    @aakankshachaudhary7524 6 ปีที่แล้ว +1

    Superb video. Very much helpful in understanding difference between prefix and postfix

    • @LearningLad
      @LearningLad  6 ปีที่แล้ว

      Thank you.
      keep Learning :)

  • @husseina.shoaib099
    @husseina.shoaib099 5 ปีที่แล้ว +3

    Thanks Mr. Anil 💜

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

    This helped me a lot, subscribed

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

      glad that my video helped you :)

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

      @@LearningLad thank you!

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

    you explained it in amazing way.. thanks

  • @ankitsingh-mo3lh
    @ankitsingh-mo3lh 8 ปีที่แล้ว

    tomorrow is my exam and your video helped me a lot.
    thank you a lot

  • @user-fo4vw2bn3s
    @user-fo4vw2bn3s 9 ปีที่แล้ว +1

    I will watch all your episodes , because they are usefull and very good about my C++ skills. I want to make games with Qt and I think that if I learn C++ from here I shall be ready to start Qt learning . Many thanks for this videos :) .

  • @sneakeygaming
    @sneakeygaming 6 ปีที่แล้ว

    #include
    using namespace std;
    int main ()
    {
    int a , b;
    a = 10;
    cout

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

    you're the best man!

  • @mohammadashrafulhaqashik2904
    @mohammadashrafulhaqashik2904 8 ปีที่แล้ว +1

    It is very helpful for me.Thank you for your nice and easy tutorial...

    • @LearningLad
      @LearningLad  8 ปีที่แล้ว

      +ashrafulhaq ashik
      pleasure man :)

  • @SiddharthMaurya7
    @SiddharthMaurya7 9 ปีที่แล้ว +1

    ok...ok..now i got it,,,,nice explanation

  • @khushbubhavinpatel5333
    @khushbubhavinpatel5333 9 ปีที่แล้ว +1

    Great Tutorials, explanation is very nice and understandable. Thank you so much.

    • @LearningLad
      @LearningLad  9 ปีที่แล้ว

      +khushbubhavin patel
      thank you :)

  • @roisuuuu-kun
    @roisuuuu-kun ปีที่แล้ว

    This is much easier to understand!

  • @swesh6657
    @swesh6657 8 ปีที่แล้ว +2

    very helpful, thanks a lot

  • @kanwalthareja6165
    @kanwalthareja6165 8 ปีที่แล้ว +14

    yeah! b c d e f g.....

  • @themusicmonk1471
    @themusicmonk1471 7 ปีที่แล้ว

    it helped me alot, thank learning lad. its great all videos......!!!!

  • @Arciel11
    @Arciel11 7 วันที่ผ่านมา +1

    thanks yey❤

  • @Abhishekn._
    @Abhishekn._ 4 ปีที่แล้ว +1

    Thanks bro your vid helped

  • @black_koolaid
    @black_koolaid 7 ปีที่แล้ว +1

    This video helped me a lot. Thanks!

    • @LearningLad
      @LearningLad  7 ปีที่แล้ว

      Pleasure.
      I'm really glad that my tutorials are helping you :)

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

    Thank you.

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

    brilliant tutorial.

  • @abidafghanlaghmanai5389
    @abidafghanlaghmanai5389 6 ปีที่แล้ว +1

    thanks u somuch for the best tutorial / thanks sir /ur voice is so clear

    • @LearningLad
      @LearningLad  6 ปีที่แล้ว

      pleasure.
      Keep Learning :)

  • @seankang8318
    @seankang8318 6 ปีที่แล้ว +1

    Hi, I need help with this; when I write
    int a = 10;
    while(a--)
    cout

    • @LearningLad
      @LearningLad  6 ปีที่แล้ว

      when you have
      a--
      in the statement where this post decrement is used, the value of the variable is used first and then it will be decremented.
      your cout is the next statement and that's why you get 9.

  • @naruravanareddy4640
    @naruravanareddy4640 6 ปีที่แล้ว +1

    in the video u showed the number is incremented by only 1 , but i want to increment it by 5 ie; i want 15 as output for 10 , how can i do this ??

    • @LearningLad
      @LearningLad  6 ปีที่แล้ว

      if the variable is a then do
      a += 5;
      this will increment the value of a by 5

  • @Lordwarship
    @Lordwarship 6 ปีที่แล้ว +1

    Thanks.

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

    You are awesome. Thank you very much.

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

      my pleasure.
      keep learning :)

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

    Wonderfull explanation Sir

  • @abacuscsetheoryinbengali4800
    @abacuscsetheoryinbengali4800 7 ปีที่แล้ว +4

    Greetings!
    Sir, i can't understand the last 3 min of this video

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

      In the first he did operation then cout.
      Then when he cout (and the operation was in the cout order) the difference appeared...
      Now focus and you will get it for sure ^^

  • @paverpreparation7514
    @paverpreparation7514 6 ปีที่แล้ว +1

    Helped me best of the videos

    • @LearningLad
      @LearningLad  6 ปีที่แล้ว

      Thank you.
      keep Learning :)

  • @eylalove8768
    @eylalove8768 9 ปีที่แล้ว +1

    thank you for this! It's very helpful!

    • @LearningLad
      @LearningLad  9 ปีที่แล้ว

      eyla love
      my pleasure man :)

  • @raghurammuthyala1023
    @raghurammuthyala1023 9 ปีที่แล้ว

    When I click build and run, it says this project is not yet build do you want to build it now? When I click yes, nothing happens and when I click build and run again it shows the same. What to do please help me.

    • @ChaudharyClubers
      @ChaudharyClubers 9 ปีที่แล้ว

      Re-install your code block or any other compiler which you have installed at you os.

    • @amreshgiri4933
      @amreshgiri4933 9 ปีที่แล้ว +1

      +Mouni Raghuram same problem with me bro ! Did you find any solution yet ?

  • @waqarahmad7125
    @waqarahmad7125 7 ปีที่แล้ว +1

    thank you so much

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

    Sir , If we write...
    int a=1
    Cout

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

    cout mai jo word a hai usse humne double inverted comma mai kyu ni daala

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

    Yay! Thank you so much!

  • @chahatbansal7989
    @chahatbansal7989 7 ปีที่แล้ว

    Awesome work thank you!!

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

    jesus this video is good

  • @zshankhan1862
    @zshankhan1862 6 ปีที่แล้ว +1

    it helped Thanks

    • @LearningLad
      @LearningLad  6 ปีที่แล้ว

      pleasure.
      keep Learning :)

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

    Good🙂

  • @sujaykumar7040
    @sujaykumar7040 7 ปีที่แล้ว +2

    sir if it was -
    cout

    • @LearningLad
      @LearningLad  7 ปีที่แล้ว

      it will be
      11
      11
      try this program in your computer.

    • @sujaykumar7040
      @sujaykumar7040 7 ปีที่แล้ว +5

      cout

  • @McMatt010
    @McMatt010 8 ปีที่แล้ว +1

    thanks man

  • @keithlungile
    @keithlungile 6 ปีที่แล้ว +1

    Great tutorial

  • @faisalahmed9434
    @faisalahmed9434 8 ปีที่แล้ว +1

    Nice example !!

    • @LearningLad
      @LearningLad  8 ปีที่แล้ว

      +Faisal Ahmed
      Thank you :)

  • @brandougherty
    @brandougherty 8 ปีที่แล้ว +9

    yay! :D

  • @rehmanvlogs-hq8nt
    @rehmanvlogs-hq8nt 8 ปีที่แล้ว +1

    #include
    using namespace std;
    int main()
    {
    int a= 3;
    cout

    • @LearningLad
      @LearningLad  8 ปีที่แล้ว +1

      +abdul rehman
      when u use
      cout

    • @rehmanvlogs-hq8nt
      @rehmanvlogs-hq8nt 8 ปีที่แล้ว +1

      but in post fix value dosent change and result was 3.

    • @LearningLad
      @LearningLad  8 ปีที่แล้ว

      +abdul rehman
      value changes.
      when u have
      ++a or a++
      it is exactly equal to
      a = a+1;

    • @rehmanvlogs-hq8nt
      @rehmanvlogs-hq8nt 8 ปีที่แล้ว

      then why it shows different values when we run

  • @kaushalsookarah3458
    @kaushalsookarah3458 8 ปีที่แล้ว

    thanks

  • @raphazard8737
    @raphazard8737 6 ปีที่แล้ว

    thank you anil.

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

    great !

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

    int a=10;
    cout

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

    sir here is the confusion
    cout

  • @ankitsingh-mo3lh
    @ankitsingh-mo3lh 8 ปีที่แล้ว +1

    can you tell me the logic behind menu driven programmes and fibonacci series.

    • @mucgake8763
      @mucgake8763 7 ปีที่แล้ว

      Fibonacci i can tell you: (Every new number equals to the numbers behind it) 1, 1, 2 (1+1=2) , 3(1+2=3), 5(2+3=5) etc.

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

    hi, i have used both plus plus a and a plus plus but the result was quite similar .
    video number 13.

  • @abacuscsetheoryinbengali4800
    @abacuscsetheoryinbengali4800 7 ปีที่แล้ว +2

    yay..i got it

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

    Bestest

  • @kwakukusi8997
    @kwakukusi8997 7 ปีที่แล้ว

    int main()
    {
    int a = 10;
    cout

    • @BhargabKakati
      @BhargabKakati 7 ปีที่แล้ว +1

      Execution order of these operators are from right to left. Going by this logic a-- will store 9 in its memory but since it is postfix it will not be displayed this time so for a-- the output is 10.
      For a++ the output is 9 because the previous value of memory will be displayed this time.Now the value in memory is 10.Hope this helped

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

    ye!

  • @user-pd8cf9vx2k
    @user-pd8cf9vx2k 8 ปีที่แล้ว

    Thank you

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

    Nice bro

  • @ubaidarif9423
    @ubaidarif9423 8 ปีที่แล้ว

    thanx for sharing v.good tutorials..
    friend i want to know how this statment run, left to right or from right to left..... a=5;
    cout

  • @mohammadashrafulhaqashik2904
    @mohammadashrafulhaqashik2904 8 ปีที่แล้ว +1

    nice sir...

    • @LearningLad
      @LearningLad  8 ปีที่แล้ว

      +ashrafulhaq ashik
      thank you :)

  • @joycrimson3973
    @joycrimson3973 7 ปีที่แล้ว

    int x = 5;
    x = ++x;
    z = x + ++x;
    cout

  • @sahilmohanty7911
    @sahilmohanty7911 7 ปีที่แล้ว +4

    yea

  • @paulohanded28
    @paulohanded28 8 ปีที่แล้ว

    how can i have the execution time too after debugging?

  • @Naytastiic
    @Naytastiic 9 ปีที่แล้ว +1

    how would I modify variables start = 6 and increase = 5

    • @LearningLad
      @LearningLad  9 ปีที่แล้ว

      +Naytastiic
      i can't understand your question. pls provide the source code along with ur question ;)

  • @trumanb4758
    @trumanb4758 7 ปีที่แล้ว

    These tutorials are excellent but sometimes i have difficulty understanding his thick accent. Does anyone know what does he say at 2:15 after 'loops'?

  • @livedelsolar5264
    @livedelsolar5264 6 ปีที่แล้ว +1

    a= ye?

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

    Anyone wondered whether c++ should be called "c increment"?

  • @user-ze9jj5kj8s
    @user-ze9jj5kj8s 6 ปีที่แล้ว +1

    Which compiler are you using sir

  • @tux9730
    @tux9730 7 ปีที่แล้ว +1

    The best part is when there's no typo's

  • @sarangpatil2325
    @sarangpatil2325 8 ปีที่แล้ว

    You can just type what you write using your pencil.

  • @avinavsharma7207
    @avinavsharma7207 8 ปีที่แล้ว +1

    Yea

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

    Try cout

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

    Only if I don't see the a in the explanation I would never understand 'yay'.

  • @krishnakumar-xr1rj
    @krishnakumar-xr1rj 5 ปีที่แล้ว +1

    👍👍👍👍👍👍👍

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

    Ubuntu pa run ni ho rha

  • @iqrahussain5482
    @iqrahussain5482 7 ปีที่แล้ว

    wow

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

    Yeezy must have taught him.

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

    You know, it will be much easier to type it instead of writing it, also your writing is quite slow and hard to understand

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

      thank you for the feedback
      will try to make it better in the upcoming videos

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

      Please dont get the wrong idea. Its no offense brother, I learnt alot on your videos. You're awesome 🙂

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

    lisa winters

  • @kahfung7405
    @kahfung7405 6 ปีที่แล้ว

    yay plusplus😀

  • @DARKFLASHOP
    @DARKFLASHOP 6 ปีที่แล้ว

    see how i had made an iphone with html css and JavaScript

  • @arpitjain3467
    @arpitjain3467 8 ปีที่แล้ว

    int a = 10;
    cout

    • @BhargabKakati
      @BhargabKakati 7 ปีที่แล้ว

      You are wrong buddy the output is
      Hello world
      12 12 11
      The execution is from right to left

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

    Who else is watching it in 2020

  • @Yash-vm4ts
    @Yash-vm4ts 6 ปีที่แล้ว +1

    Yay :')))

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

    oh ye

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

    Yeh ++ and yeh --

  • @notmimul
    @notmimul 7 ปีที่แล้ว

    Yeyy...

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

    -1 presentation