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

Поделиться
HTML-код
  • Опубликовано: 14 янв 2025

Комментарии • 187

  • @ashitpoojary1049
    @ashitpoojary1049 9 лет назад +52

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

  • @calisquid7847
    @calisquid7847 6 лет назад +16

    This was a very good tutorial, thank you mr yay

  • @Majorquantum
    @Majorquantum Год назад +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.

  • @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...

  • @christopherchavez895
    @christopherchavez895 6 лет назад +4

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

  • @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 7 месяцев назад

      How is it... After 6 years?

  • @pankajver26
    @pankajver26 Год назад +1

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

  • @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.

  • @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!

  • @husseina.shoaib099
    @husseina.shoaib099 6 лет назад +3

    Thanks Mr. Anil 💜

  • @kevinjustinmbote999
    @kevinjustinmbote999 9 лет назад +79

    int yay! :))))

  • @ranjeetkaur7829
    @ranjeetkaur7829 4 года назад +1

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

  • @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

  • @seankang8318
    @seankang8318 7 лет назад +1

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

  • @lies4212
    @lies4212 3 года назад +1

    you're the best man!

  • @chhayadubey7300
    @chhayadubey7300 6 лет назад +2

    you explained it in amazing way.. thanks

  • @x-hale820
    @x-hale820 3 года назад +1

    It helped me now in 2021
    Thanks, buddy

  • @aakankshachaudhary7524
    @aakankshachaudhary7524 7 лет назад +1

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

  • @swesh6657
    @swesh6657 8 лет назад +2

    very helpful, thanks a lot

  • @TechSpot56
    @TechSpot56 5 лет назад +1

    brilliant tutorial.

  • @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 :)

  • @usamaspeakscricket
    @usamaspeakscricket 3 года назад +1

    Wonderfull explanation Sir

  • @SiddharthMaurya7
    @SiddharthMaurya7 9 лет назад +1

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

  • @themusicmonk1471
    @themusicmonk1471 7 лет назад

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

  • @roisuuuu-kun
    @roisuuuu-kun 2 года назад

    This is much easier to understand!

  • @chahatbansal7989
    @chahatbansal7989 7 лет назад

    Awesome work thank you!!

  • @Runningbowels
    @Runningbowels 3 года назад +1

    Yay! Thank you so much!

  • @ankitsingh-mo3lh
    @ankitsingh-mo3lh 8 лет назад

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

  • @Ashik313-M
    @Ashik313-M 9 лет назад +1

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

    • @LearningLad
      @LearningLad  9 лет назад

      +ashrafulhaq ashik
      pleasure man :)

  • @khushbubhavinpatel5333
    @khushbubhavinpatel5333 9 лет назад +1

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

    • @LearningLad
      @LearningLad  9 лет назад

      +khushbubhavin patel
      thank you :)

  • @paverpreparation7514
    @paverpreparation7514 7 лет назад +1

    Helped me best of the videos

  • @eylalove8768
    @eylalove8768 9 лет назад +1

    thank you for this! It's very helpful!

  • @joeporsche1767
    @joeporsche1767 5 лет назад +1

    You are awesome. Thank you very much.

  • @Abhishekn._
    @Abhishekn._ 5 лет назад +1

    Thanks bro your vid helped

  • @rishabhjain6368
    @rishabhjain6368 4 года назад +1

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

  • @faisal.fs1
    @faisal.fs1 9 лет назад +1

    Nice example !!

  • @zshankhan1862
    @zshankhan1862 7 лет назад +1

    it helped Thanks

  • @keithlungile
    @keithlungile 7 лет назад +1

    Great tutorial

  • @ЛъчезарПещерлиев
    @ЛъчезарПещерлиев 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 :) .

  • @mrmaisoli7946
    @mrmaisoli7946 3 года назад +1

    Thank you.

  • @waqarahmad7125
    @waqarahmad7125 8 лет назад +1

    thank you so much

  • @Arciel11
    @Arciel11 4 месяца назад +1

    thanks yey❤

  • @raphazard8737
    @raphazard8737 6 лет назад

    thank you anil.

  • @يعقوبعمر-س9ث
    @يعقوبعمر-س9ث 6 лет назад +1

    Which compiler are you using sir

  • @McMatt010
    @McMatt010 8 лет назад +1

    thanks man

  • @anas_tabassum
    @anas_tabassum 5 лет назад +1

    Good🙂

  • @sujaykumar7040
    @sujaykumar7040 8 лет назад +2

    sir if it was -
    cout

  • @learnweb404
    @learnweb404 4 года назад

    Who else is watching it in 2020

  • @Lordwarship
    @Lordwarship 6 лет назад +1

    Thanks.

  • @Ashik313-M
    @Ashik313-M 9 лет назад +1

    nice sir...

    • @LearningLad
      @LearningLad  9 лет назад

      +ashrafulhaq ashik
      thank you :)

  • @abacuscsetheoryinbengali4800
    @abacuscsetheoryinbengali4800 7 лет назад +4

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

    • @ghobashi2000
      @ghobashi2000 4 года назад

      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 ^^

  • @kanwalthareja6165
    @kanwalthareja6165 8 лет назад +15

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

  • @seankang8318
    @seankang8318 7 лет назад +1

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

    • @LearningLad
      @LearningLad  7 лет назад

      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.

  • @divyaashok2695
    @divyaashok2695 4 года назад +1

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

  • @lamebrisee
    @lamebrisee 5 лет назад

    great !

  • @naruravanareddy4640
    @naruravanareddy4640 7 лет назад +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  7 лет назад

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

  • @ankitsingh-mo3lh
    @ankitsingh-mo3lh 8 лет назад +1

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

    • @mucgake8763
      @mucgake8763 8 лет назад

      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.

  • @الاماراتداري-ب2ي
    @الاماراتداري-ب2ي 9 лет назад

    Thank you

  • @abacuscsetheoryinbengali4800
    @abacuscsetheoryinbengali4800 7 лет назад +2

    yay..i got it

  • @abidafghanlaghmanai5389
    @abidafghanlaghmanai5389 6 лет назад +1

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

  • @shettipellikomal6421
    @shettipellikomal6421 5 лет назад

    int a=10;
    cout

  • @sneakeygaming
    @sneakeygaming 7 лет назад

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

  • @trumanb4758
    @trumanb4758 8 лет назад

    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'?

  • @virx7944
    @virx7944 3 года назад +1

    jesus this video is good

  • @Memo-f6f
    @Memo-f6f 3 месяца назад

    thanks!

  • @livedelsolar5264
    @livedelsolar5264 6 лет назад +1

    a= ye?

  • @kaushalsookarah3458
    @kaushalsookarah3458 8 лет назад

    thanks

  • @paulohanded28
    @paulohanded28 8 лет назад

    how can i have the execution time too after debugging?

  • @TheTuneTinkerer
    @TheTuneTinkerer 3 года назад

    Nice bro

  • @tux9730
    @tux9730 7 лет назад +1

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

  • @raghurammuthyala1023
    @raghurammuthyala1023 10 лет назад

    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 ?

  • @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 ;)

  • @kwakukusi8997
    @kwakukusi8997 8 лет назад

    int main()
    {
    int a = 10;
    cout

    • @BhargabKakati
      @BhargabKakati 8 лет назад +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

  • @malihaasghar7935
    @malihaasghar7935 2 года назад

    Bestest

  • @rehmanvlogs-hq8nt
    @rehmanvlogs-hq8nt 9 лет назад +1

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

    • @LearningLad
      @LearningLad  9 лет назад +1

      +abdul rehman
      when u use
      cout

    • @rehmanvlogs-hq8nt
      @rehmanvlogs-hq8nt 9 лет назад +1

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

    • @LearningLad
      @LearningLad  9 лет назад

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

    • @rehmanvlogs-hq8nt
      @rehmanvlogs-hq8nt 9 лет назад

      then why it shows different values when we run

  • @mahdirezaie7116
    @mahdirezaie7116 3 года назад

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

  • @pushkaryadav1797
    @pushkaryadav1797 4 года назад

    sir here is the confusion
    cout

  • @sahilmohanty7911
    @sahilmohanty7911 8 лет назад +4

    yea

  • @krishnakumar-xr1rj
    @krishnakumar-xr1rj 5 лет назад +1

    👍👍👍👍👍👍👍

  • @joycrimson3973
    @joycrimson3973 7 лет назад

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

  • @diproy9363
    @diproy9363 5 лет назад +2

    ye!

  • @sarangpatil2325
    @sarangpatil2325 8 лет назад

    You can just type what you write using your pencil.

  • @brandougherty
    @brandougherty 9 лет назад +9

    yay! :D

  • @avinavsharma7207
    @avinavsharma7207 9 лет назад +1

    Yea

  • @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

  • @paulcopper299
    @paulcopper299 3 года назад

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

  • @abrahamebyfugui326
    @abrahamebyfugui326 3 года назад

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

  • @nayyarshoaibmalik3541
    @nayyarshoaibmalik3541 5 лет назад

    Ubuntu pa run ni ho rha

  • @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 🙂

  • @Hndm27
    @Hndm27 4 года назад

    Try cout

  • @DARKFLASHOP
    @DARKFLASHOP 6 лет назад

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

  • @gcorc
    @gcorc 6 лет назад

    Yeezy must have taught him.

  • @iqrahussain5482
    @iqrahussain5482 7 лет назад

    wow

  • @ladonnawatterson5571
    @ladonnawatterson5571 6 лет назад

    lisa winters

  • @kahfung7405
    @kahfung7405 7 лет назад

    yay plusplus😀

  • @Mzforever-i7k
    @Mzforever-i7k 3 месяца назад

    First of all you should learn the difference between "Ye" and A

  • @arpitjain3467
    @arpitjain3467 8 лет назад

    int a = 10;
    cout

    • @BhargabKakati
      @BhargabKakati 8 лет назад

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

  • @Yash-vm4ts
    @Yash-vm4ts 6 лет назад +1

    Yay :')))

  • @notmimul
    @notmimul 7 лет назад

    Yeyy...

  • @javiegamboa1757
    @javiegamboa1757 5 лет назад

    oh ye