C++ POINTERS (2020) - How to create/change arrays at runtime? (Dynamic arrays) PROGRAMMING TUTORIAL

Поділитися
Вставка
  • Опубліковано 10 лип 2024
  • Dynamic arrays are arrays that are allocated at the run time, rather than at compile time. Because of that Dynamic array can change its size during run time.
    In this video, I'm explaining the most important differences between arrays and linked lists, demonstrating how to allocate and deallocate memory using "new" and "delete" keywords, and how to create and use dynamic arrays.
    📚 Learn how to solve problems and build projects with these Free E-Books ⬇️
    C++ Lambdas e-book - free download here: bit.ly/freeCppE-Book
    Entire Object-Pascal step-by-step guide - free download here: bit.ly/FreeObjectPascalEbook
    🚀📈💻🔥 My Practical Programming Course: www.codebeautyacademy.com/
    Experience the power of practical learning, gain career-ready skills, and start building real applications!
    This is a step-by-step course designed to take you from beginner to expert in no time!
    💰 Here is a coupon to save 10% on your first payment (CODEBEAUTY_YT10).
    Use it quickly, because it will be available for a limited time.
    Download Visual Assist here: bit.ly/WT-CB
    I use it to enhance the performance, features, and support for C, C#, and C++ development in Visual Studio.
    Download Ultra Edit here: bit.ly/UE-CB
    It is a powerful, secure text editor designed specifically for programmers.
    ☕ If you've found my content helpful and would like to support me, you now have the option to buy me a coffee or a cookie! It's a small gesture of gratitude that means a lot to me and helps me keep creating free educational videos for you. You can use the link below to make a contribution: bit.ly/CodeBeauty_BuyMeACoffee
    However, please don't feel obligated to do so. I appreciate every one of you, and I will continue to share valuable content with you regardless of whether you choose to support me in this way. Thank you for being part of the Code Beauty community! ❤️😇
    Follow me on other platforms:
    Instagram 📸 - / truecodebeauty
    Twitter 🐦- / truecodebeauty
  • Наука та технологія

КОМЕНТАРІ • 281

  • @CodeBeauty
    @CodeBeauty  2 роки тому +22

    📚 Learn how to solve problems and build projects with these Free E-Books ⬇️
    C++ Lambdas e-book - free download here: bit.ly/freeCppE-Book
    Entire Object-Pascal step-by-step guide - free download here: bit.ly/FreeObjectPascalEbook
    🚀📈💻🔥 My Practical Programming Course: www.codebeautyacademy.com/
    Experience the power of practical learning, gain career-ready skills, and start building real applications!
    This is a step-by-step course designed to take you from beginner to expert in no time!
    💰 Here is a coupon to save 10% on your first payment (CODEBEAUTY_YT10).
    Use it quickly, because it will be available for a limited time.

    • @user-zj6yg4ps7q
      @user-zj6yg4ps7q 10 місяців тому

      Thank you so much for your lecture. It's very good and it helps me alot.
      I have a question regarding to deallocate memory: What if we don't call delete[]myArray but just only call myArray = NULL; ? Can you explain what will happen?

  • @uccoskun
    @uccoskun 6 місяців тому +8

    You are a very good teacher. you specify the problem, explain it, and then finally solve it for us.

  • @robertocarriero
    @robertocarriero 3 роки тому +44

    I do love your pronunciation! For a non native english speaker (like me), it is very easy to understand you :-)

  • @tep-gn4rk
    @tep-gn4rk 2 роки тому +46

    Thank you! I was so frustrated by my dynamic arrays assignment in class, I spent hours trying to get it to work. This helped clear things up! :)

  • @jahitrst2863
    @jahitrst2863 3 роки тому +49

    Aight. Finally something good on UA-cam

  • @sinodasidiatof5465
    @sinodasidiatof5465 2 роки тому +1

    Of all online tutorials, you are the best! Not only in C++. You must teach in universities. Charismatic!

  • @srivathsgondi191
    @srivathsgondi191 2 роки тому +1

    i have followed so many coding channels, yet this remains as one of the best for me.

  • @czaratech7216
    @czaratech7216 2 роки тому +1

    I love how you explain things going on in memory!

  • @snazzym00se
    @snazzym00se 2 роки тому +10

    This was way more helpful than my lecture videos for class. Thank you

  • @MacysShopLifter
    @MacysShopLifter 2 роки тому +2

    Thanks! Really great video. You explained everything perfectly and with great detail. Had no fluff and was quick.

  • @tellator
    @tellator 2 роки тому

    Thank you for your videos. It is much easier for people who are not native English to perceive your speech than other bloggers

  • @captainven0m38
    @captainven0m38 3 роки тому

    Well I am totally in love with your way of teaching c++ stuff and specifically I love this tutorial.

  • @normalperson1130
    @normalperson1130 3 роки тому +1

    Thank you code beauty. Your way of teaching is really helpful in understanding these c++ topics. Now I feel more confident. Thank you very much.

  • @erikchen6883
    @erikchen6883 2 роки тому

    Thank you so much for this video! You are so knowledgeable and can explain better than a college professor.

  • @careenwasonga
    @careenwasonga 7 місяців тому

    I have been binge watching your videos and must I say, THIS ONE RIGHT HERE!!! It made everything make perfect sense.

  • @AnuragYadav-cp9jh
    @AnuragYadav-cp9jh 3 роки тому

    I was frustrated but now i finally found how to declare and enter value in dynamic array thank you.

  • @eliaspianomusic
    @eliaspianomusic 3 роки тому +1

    Highly appreciate the videos! Thanks for your effort! Greatly explained!

  • @mohtdips277
    @mohtdips277 3 роки тому +4

    I am very happy when I see you .. I love your lessons very much, although I suffer from an understanding of the English language, but I somehow benefit ... My love for you and I wish you success and excellence ..
    from Palestine

    • @CodeBeauty
      @CodeBeauty  3 роки тому +1

      Thank you so much! 🇵🇸🥰

  • @creativeBrains689
    @creativeBrains689 Рік тому

    It was reeeaallyyy helpful, I can't say how much this video means to me. Thanks!!!

  • @baconsledge
    @baconsledge 3 роки тому +1

    Very helpful and professional tutorials!

  • @bassets2450
    @bassets2450 3 роки тому +3

    Great job! Keep it up!
    Also, I wanted to ask you if you're gonna do some GUI tutorials in C++... Your explanations are a golden mine... Don't keep them only for yourself! 😉

  • @dubiousend9429
    @dubiousend9429 2 роки тому +2

    simple and easy to follow, love it !

  • @Abbas-xd1mc
    @Abbas-xd1mc 3 роки тому

    Best explanation! Much appreciated.

  • @Spaghettaboutit
    @Spaghettaboutit 2 роки тому

    Thanks for this video, I needed it as a refresher/maybe I never learned this(?) - anyhow thanks for making a concise explanation that didn't get long winded.

  • @michaelmorrow12
    @michaelmorrow12 Рік тому +2

    Love your videos! Currently in my last year for my bachelors and have this crazy 7 hour long test at the end of the semester where 1/4 of it tests my c++ knowledge. If I get anything less than a 70 on the test I auto fail no matter what I have on anything else turned in during the semester. Reviewing c++ with your tutorials is seriously boosting my confidence! thank you..

    • @shaquilleoatmeal6588
      @shaquilleoatmeal6588 Рік тому +1

      7 hours ?
      which country are you from bro?

    • @mariacunha8508
      @mariacunha8508 Рік тому

      how was your test, sir? also, 7 hours? how do you survive?

    • @sonido9519
      @sonido9519 8 місяців тому

      what did you get? what are you doing now?

  • @valentineobinikpo5375
    @valentineobinikpo5375 2 роки тому

    Thank you, I finally understand DMA in C++..

  • @kolbe6436
    @kolbe6436 2 роки тому +1

    I didn't quite understand this topic when it was taught at school so I am glad that you explained it well here and I was able to understand it. Thank you.

    • @kolbe6436
      @kolbe6436 Рік тому

      @Feev6r Yes, it is.

    • @kolbe6436
      @kolbe6436 Рік тому

      @Feev6r But it depends on the school you attend.

  • @emmapha4593
    @emmapha4593 2 роки тому +1

    Thank you so much for such amazing videos. I hope you could do videos about “sort” and “iterator”. Thank you

  • @georgebentley-ricardo9445
    @georgebentley-ricardo9445 2 роки тому +1

    Thanks for sharing another great lesson, a video for algorithms would be great too. Many thanks 🤓👍

  • @satvikkhare1844
    @satvikkhare1844 3 роки тому +1

    You are a very good teacher. Please continue making videos on C++. PLease make videos on Data structures using C++.

  • @shaladddin5687
    @shaladddin5687 2 роки тому

    Thank you so much, the explanation is really satisfying
    that's all I can say 😄

  • @shubhammathur2926
    @shubhammathur2926 2 роки тому +1

    From giving up coding to understanding it all. Your channel is amazing .Thank you so much . I promise to buy you coffee with my first salary :)

  • @metaman8662
    @metaman8662 3 роки тому +1

    This is enlightening thank you!

  • @zombiehellmonkeygaming1956
    @zombiehellmonkeygaming1956 3 роки тому +10

    Thank you for the tutorial, it cleared many things up for me. Do you think you could expand on this lesson to explain creating dynamic multi-dimensional arrays at runtime?

    • @CodeBeauty
      @CodeBeauty  3 роки тому +7

      I plan to do multidimensional as well 😊

  • @toastyren3991
    @toastyren3991 3 роки тому

    Very interesting video, you're amazing Saldina ;-) Thank you very much for the time you spend making those videos ;-)

  • @iamabdulsami
    @iamabdulsami 3 роки тому

    Thanks a lot for clearing my concepts

  • @moizsultan5440
    @moizsultan5440 3 роки тому +5

    Just subbed you today after watching 5 of your vids thanks for putting effort

  • @rishabhsingh-gw3gf
    @rishabhsingh-gw3gf Рік тому

    Thank you so so much.... finally understood all my doubts are clear...thank you so much for explaining this in so simple way...👍👍👍😃😃❤️❤️

  • @__matthi
    @__matthi 3 роки тому

    Great explanation! Thanks :)

  • @bintangyustra
    @bintangyustra Рік тому

    thank you so much, this video help me alot to finish my school assignment

  • @SpaceSurferGod
    @SpaceSurferGod 2 роки тому

    Really nice explanation, thank you!

  • @jeloi9364
    @jeloi9364 3 роки тому +8

    amazing explanation Saldina!!! TOP!
    are you planning to make a smart pointers video soon??

  • @juangaldo2892
    @juangaldo2892 2 роки тому

    I love you, sorry and thank you for all!! I'm learning a lot!

  • @theboy776
    @theboy776 Рік тому

    Yes this girl explains really good. 😊

  • @ahabdelaal
    @ahabdelaal 2 роки тому

    Thank you . appreciate your effort .

  • @snehadey883
    @snehadey883 4 місяці тому

    Why didn't I find your channel earlier?😩 You explained it very well I understood this topic within seconds ❤

  • @FunComputerScience
    @FunComputerScience 9 місяців тому

    nice video, helped me lot!

  • @robertod893
    @robertod893 Рік тому

    Excellent video!

  • @legolas5684
    @legolas5684 3 роки тому +1

    Great job!

  • @rmv9064
    @rmv9064 11 місяців тому

    Thank you SO MUCH.

  • @Scrawlerism
    @Scrawlerism 3 роки тому

    Omg a good dynamic array deallocation explanation thank youuuuuu

  • @Ashishkumar-mj4dh
    @Ashishkumar-mj4dh 3 роки тому

    this video cleared my concept

  • @yeadatwunyt8004
    @yeadatwunyt8004 2 роки тому

    Finally. Thank you.

  • @mmaranta785
    @mmaranta785 3 роки тому

    Thanks. I learned something.

  • @itsme17717
    @itsme17717 8 місяців тому +1

    I just find your channel and you save my lots of time🥰🥰🥰

  • @ArpitKumar-yo6up
    @ArpitKumar-yo6up 2 роки тому

    Thank you for the explanation

  • @codevanguard
    @codevanguard 9 місяців тому

    great practice on de-allocate

  • @nature-water
    @nature-water 2 роки тому

    Thank you vary much sa for all your video 🙏🙏🙏

  • @aykut8517
    @aykut8517 3 роки тому +1

    thanks for upload ,really helpfull

  • @user-py1ct6co4w
    @user-py1ct6co4w Місяць тому

    Amazing your explanation

  • @btait1365
    @btait1365 2 роки тому

    omg thank you thank you thank you!!!!!!

  • @Javagenusk87
    @Javagenusk87 Рік тому

    Interesting well explained this was very helpful thank you.

  • @gisellegonzalez431
    @gisellegonzalez431 3 роки тому +1

    I love your channel!

  • @vaughnmonkey
    @vaughnmonkey 3 роки тому

    very helpful thank you

  • @mashalmokarar4817
    @mashalmokarar4817 Рік тому +1

    Ms saldina by far your the best:))))

  • @sujalthakkar2118
    @sujalthakkar2118 3 місяці тому

    smooth af!

  • @KarinaGarcia-tk5re
    @KarinaGarcia-tk5re Рік тому

    THANKS!

  • @maxfeilmeier2274
    @maxfeilmeier2274 2 роки тому

    Awesome. 👌

  • @bara7979
    @bara7979 Рік тому +16

    First and foremost, thank you for all of these fantastic tutorials. We would appreciate it if you could use the dark mode for future tutorials.

    • @CodeBeauty
      @CodeBeauty  Рік тому +3

      Thanks. I did that already for later videos 😊

  • @music1.060
    @music1.060 2 місяці тому

    beautiful teacher and fun programming is best

  • @songhye742
    @songhye742 11 місяців тому

    Your teach very cleared I love you 😘

  • @nikuzair3178
    @nikuzair3178 2 роки тому

    Thank you!

  • @mashalmokarar4817
    @mashalmokarar4817 Рік тому +1

    I cant say thank you enough👏👏

  • @fadi0802
    @fadi0802 3 роки тому

    Excellent video

  • @agnivmukhopadhyay3293
    @agnivmukhopadhyay3293 3 роки тому +1

    Love you 3000!

  • @ritikarai1232
    @ritikarai1232 3 роки тому

    Thank u Saldina!!!!!!!

  • @saravanakumar.a
    @saravanakumar.a 10 місяців тому

    Thank you sister😌

  • @dayla8434
    @dayla8434 4 місяці тому +1

    How can someone be that perfect in teaching ! U're so beautiful ilu ❤

    • @CodeBeauty
      @CodeBeauty  4 місяці тому +1

      Thank you so much and I'm happy that my videos help you! ❤️🥰

  • @datmapmap7942
    @datmapmap7942 3 роки тому +1

    Thanks for your video. Hoping that you will make a video about linked list someday !

    • @CodeBeauty
      @CodeBeauty  3 роки тому +1

      ua-cam.com/video/HKfj0l7ndbc/v-deo.html
      🤗🤗

  • @BKYADAV-zm7yv
    @BKYADAV-zm7yv 2 роки тому

    Nice explanation mam thank you so much

  • @arpnasjs9825
    @arpnasjs9825 2 роки тому +1

    Thank u😊

  • @piyushkashyap2322
    @piyushkashyap2322 2 роки тому +1

    BEST💯

  • @user-wk1hx8ec4l
    @user-wk1hx8ec4l 3 роки тому

    thank you

  • @khalidessamoudi2291
    @khalidessamoudi2291 3 роки тому

    Really beauty coding

  • @subee128
    @subee128 Рік тому

    Thanks

  • @amaninthesunset2951
    @amaninthesunset2951 2 роки тому

    greart, it was usefull for me

  • @KhoaNguyen-ey8pb
    @KhoaNguyen-ey8pb 3 роки тому

    thanks teacher

  • @supunthilakshana
    @supunthilakshana 3 роки тому +1

    Thank you very much.

    • @CodeBeauty
      @CodeBeauty  3 роки тому

      You are welcome! Best wishes! 🤗💗

  • @Yes.Its.
    @Yes.Its. 3 роки тому

    Yes, please make video between linked list and arrey! Pleease ^^

  • @rmgilmour6665
    @rmgilmour6665 Рік тому +1

    thank you!

  • @brhaneandemicheal8805
    @brhaneandemicheal8805 2 роки тому +1

    LOVE YOU

  • @kariakistephen508
    @kariakistephen508 2 роки тому +1

    Nice one

  • @ranambinar4420
    @ranambinar4420 Рік тому

    thank u a looot

  • @tsashuabowetumawe6358
    @tsashuabowetumawe6358 3 роки тому

    helpfull thank you

  • @shakilmosharrof_1994
    @shakilmosharrof_1994 3 роки тому +2

    Please make videos on Data structures and algorithms in c++

    • @CodeBeauty
      @CodeBeauty  3 роки тому

      I already have some video about data structures ☺

  • @gds1233
    @gds1233 Рік тому +1

    came here from freecodecamp video. loving your content

  • @CollegeTubeBrw
    @CollegeTubeBrw 3 роки тому

    Please make a video on vectors as well

  • @409_manohar6
    @409_manohar6 2 роки тому

    Hi mam ur the one who motivated me and do u remember me?

  • @vojtechkozak3328
    @vojtechkozak3328 3 роки тому +3

    Will you do video about std::make_unique and std::make_shared?

  • @chanchaltiwari648
    @chanchaltiwari648 2 роки тому +1

    please make a video on vectors.