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

  Рет қаралды 160,277

CodeBeauty

CodeBeauty

Күн бұрын

Пікірлер: 284
@CodeBeauty
@CodeBeauty 3 жыл бұрын
📚 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.
@DanTon-v7o
@DanTon-v7o Жыл бұрын
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 11 ай бұрын
You are a very good teacher. you specify the problem, explain it, and then finally solve it for us.
@tep-gn4rk
@tep-gn4rk 3 жыл бұрын
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! :)
@CodeBeauty
@CodeBeauty 3 жыл бұрын
🤞🥰🥰
@robertocarriero
@robertocarriero 3 жыл бұрын
I do love your pronunciation! For a non native english speaker (like me), it is very easy to understand you :-)
@CodeBeauty
@CodeBeauty 3 жыл бұрын
🤗🥰🥰
@jahitrst2863
@jahitrst2863 4 жыл бұрын
Aight. Finally something good on KZbin
@CodeBeauty
@CodeBeauty 4 жыл бұрын
🤞🥰
@vrietywastaken
@vrietywastaken 3 жыл бұрын
Bro this woman is singlehandedly carrying me through my course
@srivathsgondi191
@srivathsgondi191 3 жыл бұрын
i have followed so many coding channels, yet this remains as one of the best for me.
@snazzym00se
@snazzym00se 3 жыл бұрын
This was way more helpful than my lecture videos for class. Thank you
@sinodasidiatof5465
@sinodasidiatof5465 3 жыл бұрын
Of all online tutorials, you are the best! Not only in C++. You must teach in universities. Charismatic!
@careenwasonga
@careenwasonga Жыл бұрын
I have been binge watching your videos and must I say, THIS ONE RIGHT HERE!!! It made everything make perfect sense.
@CodeBeauty
@CodeBeauty Жыл бұрын
❤️🚀✨️
@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 2 жыл бұрын
7 hours ? which country are you from bro?
@mariacunha8508
@mariacunha8508 2 жыл бұрын
how was your test, sir? also, 7 hours? how do you survive?
@sonido9519
@sonido9519 Жыл бұрын
what did you get? what are you doing now?
@k2305Pawan
@k2305Pawan 2 ай бұрын
which uni, sounds crazy lol
@czaratech7216
@czaratech7216 2 жыл бұрын
I love how you explain things going on in memory!
@mohtdips277
@mohtdips277 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 4 жыл бұрын
Thank you so much! 🇵🇸🥰
@smDonttakemeseriously
@smDonttakemeseriously 3 жыл бұрын
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 :)
@kolbe6436
@kolbe6436 2 жыл бұрын
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.
@bintangyustra
@bintangyustra Жыл бұрын
thank you so much, this video help me alot to finish my school assignment
@snehadey883
@snehadey883 9 ай бұрын
Why didn't I find your channel earlier?😩 You explained it very well I understood this topic within seconds ❤
@jeloi9364
@jeloi9364 4 жыл бұрын
amazing explanation Saldina!!! TOP! are you planning to make a smart pointers video soon??
@CodeBeauty
@CodeBeauty 4 жыл бұрын
Yes 😊
@tellator
@tellator 3 жыл бұрын
Thank you for your videos. It is much easier for people who are not native English to perceive your speech than other bloggers
@AnuragYadav-cp9jh
@AnuragYadav-cp9jh 3 жыл бұрын
I was frustrated but now i finally found how to declare and enter value in dynamic array thank you.
@itsme17717
@itsme17717 Жыл бұрын
I just find your channel and you save my lots of time🥰🥰🥰
@CodeBeauty
@CodeBeauty Жыл бұрын
🚀🚀✨️
@bara7979
@bara7979 2 жыл бұрын
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 2 жыл бұрын
Thanks. I did that already for later videos 😊
@sogan754
@sogan754 4 ай бұрын
What I like about those videos is that they are detailed, and if I'm not mistaken, you're using the official cppreference documentation, and that is good because I recognize things from our Professor's lecture. He also uses that site as a source, which makes what is thought detailed and enough, despite most videos that talk about the concepts shortly.
@zombiehellmonkeygaming1956
@zombiehellmonkeygaming1956 4 жыл бұрын
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 4 жыл бұрын
I plan to do multidimensional as well 😊
@mashalmokarar4817
@mashalmokarar4817 2 жыл бұрын
Ms saldina by far your the best:))))
@theboy776
@theboy776 Жыл бұрын
Yes this girl explains really good. 😊
@PeacefulMusic-l7o
@PeacefulMusic-l7o Жыл бұрын
It was reeeaallyyy helpful, I can't say how much this video means to me. Thanks!!!
@nitinchinmay260
@nitinchinmay260 2 жыл бұрын
I am not getting an error when I write what you wrote till 4:59 😐😐😐😐😐😐😐😐😐😐
@baconsledge
@baconsledge 3 жыл бұрын
Very helpful and professional tutorials!
@moizsultan5440
@moizsultan5440 4 жыл бұрын
Just subbed you today after watching 5 of your vids thanks for putting effort
@CodeBeauty
@CodeBeauty 4 жыл бұрын
Welcome! 🤗🥰
@captainven0m38
@captainven0m38 3 жыл бұрын
Well I am totally in love with your way of teaching c++ stuff and specifically I love this tutorial.
@satvikkhare1844
@satvikkhare1844 3 жыл бұрын
You are a very good teacher. Please continue making videos on C++. PLease make videos on Data structures using C++.
@alonalon8794
@alonalon8794 2 жыл бұрын
I dont get an error when I run the code in 4:27. why is that?
@MacysShopLifter
@MacysShopLifter 3 жыл бұрын
Thanks! Really great video. You explained everything perfectly and with great detail. Had no fluff and was quick.
@normalperson1130
@normalperson1130 3 жыл бұрын
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.
@dubiousend9429
@dubiousend9429 3 жыл бұрын
simple and easy to follow, love it !
@v037_
@v037_ Жыл бұрын
simp
@dayla8434
@dayla8434 10 ай бұрын
How can someone be that perfect in teaching ! U're so beautiful ilu ❤
@CodeBeauty
@CodeBeauty 10 ай бұрын
Thank you so much and I'm happy that my videos help you! ❤️🥰
@Utkarsh.Raj.129
@Utkarsh.Raj.129 3 жыл бұрын
At 4:32, I don't get the problem by taking input of size different everytime...why would it be an error...I'm not getting error..pls look onto this
@valentineobinikpo5375
@valentineobinikpo5375 3 жыл бұрын
Thank you, I finally understand DMA in C++..
@mashalmokarar4817
@mashalmokarar4817 2 жыл бұрын
I cant say thank you enough👏👏
@eliaspianomusic
@eliaspianomusic 3 жыл бұрын
Highly appreciate the videos! Thanks for your effort! Greatly explained!
@SpaceSurferGod
@SpaceSurferGod 2 жыл бұрын
Really nice explanation, thank you!
@metaman8662
@metaman8662 3 жыл бұрын
This is enlightening thank you!
@rishabhsingh-gw3gf
@rishabhsingh-gw3gf 2 жыл бұрын
Thank you so so much.... finally understood all my doubts are clear...thank you so much for explaining this in so simple way...👍👍👍😃😃❤️❤️
@music1.060
@music1.060 8 ай бұрын
beautiful teacher and fun programming is best
@codevanguard
@codevanguard Жыл бұрын
great practice on de-allocate
@رضوانناجي-ن5ص
@رضوانناجي-ن5ص 7 ай бұрын
Amazing your explanation
@gds1233
@gds1233 2 жыл бұрын
came here from freecodecamp video. loving your content
@erikchen6883
@erikchen6883 3 жыл бұрын
Thank you so much for this video! You are so knowledgeable and can explain better than a college professor.
@Abbas-xd1mc
@Abbas-xd1mc 3 жыл бұрын
Best explanation! Much appreciated.
@iamabdulsami
@iamabdulsami 3 жыл бұрын
Thanks a lot for clearing my concepts
@Scrawlerism
@Scrawlerism 3 жыл бұрын
Omg a good dynamic array deallocation explanation thank youuuuuu
@CodeBeauty
@CodeBeauty 3 жыл бұрын
🤗🤗😊
@datmapmap7942
@datmapmap7942 3 жыл бұрын
Thanks for your video. Hoping that you will make a video about linked list someday !
@CodeBeauty
@CodeBeauty 3 жыл бұрын
kzbin.info/www/bejne/fnzJm2OibNOXmMU 🤗🤗
@Ashishkumar-mj4dh
@Ashishkumar-mj4dh 3 жыл бұрын
this video cleared my concept
@georgebentley-ricardo9445
@georgebentley-ricardo9445 2 жыл бұрын
Thanks for sharing another great lesson, a video for algorithms would be great too. Many thanks 🤓👍
@realestateETH
@realestateETH 2 жыл бұрын
Thank you vary much sa for all your video 🙏🙏🙏
@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.
@shaladddin5687
@shaladddin5687 3 жыл бұрын
Thank you so much, the explanation is really satisfying that's all I can say 😄
@songhye742
@songhye742 Жыл бұрын
Your teach very cleared I love you 😘
@shakilmosharrof_1994
@shakilmosharrof_1994 3 жыл бұрын
Please make videos on Data structures and algorithms in c++
@CodeBeauty
@CodeBeauty 3 жыл бұрын
I already have some video about data structures ☺
@TheWierdVibe
@TheWierdVibe 2 жыл бұрын
I have been trying to swap the elements of a dynamically allocated array but the program behaves wierdly of an array which is declared at runtime?
@prokumar7239
@prokumar7239 2 жыл бұрын
Question: When I try running the example at 4:31, I do not get the error that the expression must have constant value. The program compiles and runs. After some research I found it may have to do with the compiler language standard, I believe my computer defaults to C99. I was wondering if you had any thoughts on this. I am having some trouble setting the proper language standard. Note: I am using terminal commands to compile (g++ ... ) and run (./my_program) Do programmers usually set a standard before starting a project?
@alecmatthews9611
@alecmatthews9611 2 жыл бұрын
Same bro! I tried doing the example at that timestamp and it works just fine. I didn't even have to do the dynamic allocation thing. Any idea yet why this works?
@MacysShopLifter
@MacysShopLifter 3 жыл бұрын
At 5:36 how did you add // quickly to comment that out?
@juangaldo2892
@juangaldo2892 3 жыл бұрын
I love you, sorry and thank you for all!! I'm learning a lot!
@corradosteri9150
@corradosteri9150 2 жыл бұрын
I do not get an error if i don't specify array dimension before compiling, running it and cout sizeof gets the right dimension.
@bassets2450
@bassets2450 4 жыл бұрын
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! 😉
@vojtechkozak3328
@vojtechkozak3328 4 жыл бұрын
Will you do video about std::make_unique and std::make_shared?
@spicyshizz2850
@spicyshizz2850 2 жыл бұрын
9:55 I thought that when we did "new" the array changes from fixed where it was originally one after each other and that's why "myArray+I" would work. But doesn't new make the addresses not continuously right after each other? So why does it work with new?
@Javagenusk87
@Javagenusk87 2 жыл бұрын
Interesting well explained this was very helpful thank you.
@ArpitKumar-yo6up
@ArpitKumar-yo6up 3 жыл бұрын
Thank you for the explanation
@gisellegonzalez431
@gisellegonzalez431 3 жыл бұрын
I love your channel!
@emmapha4593
@emmapha4593 2 жыл бұрын
Thank you so much for such amazing videos. I hope you could do videos about “sort” and “iterator”. Thank you
@__matthi
@__matthi 3 жыл бұрын
Great explanation! Thanks :)
@ahabdelaal
@ahabdelaal 3 жыл бұрын
Thank you . appreciate your effort .
@safiullah34511
@safiullah34511 Жыл бұрын
4:15 It works on my IDE but you said that it shows error ... The size of array can be specified at runtime
@Kazner0h
@Kazner0h Жыл бұрын
My VS Code doesn't throw me a warning if I try to dynamically allocate an array without the pointer, like at 4:06 . In fact, it just lets me run the code without issue. Has something changed with C++ since this video? Is it still necessary to use a pointer to create an array of dynamic size?
@saravanakumar.a
@saravanakumar.a Жыл бұрын
Thank you sister😌
@robertod893
@robertod893 2 жыл бұрын
Excellent video!
@chanchaltiwari648
@chanchaltiwari648 3 жыл бұрын
please make a video on vectors.
@prajwalv2222
@prajwalv2222 3 жыл бұрын
can you make videos regarding to STL in C++?
@BKYADAV-zm7yv
@BKYADAV-zm7yv 2 жыл бұрын
Nice explanation mam thank you so much
@farichzineb6162
@farichzineb6162 Жыл бұрын
4:31 i dont get any error when i try this the program was running just fine with me and i made the user fill the array with the size they put please help i dont understand where the problem is
@FunComputerScience
@FunComputerScience Жыл бұрын
nice video, helped me lot!
@mmaranta785
@mmaranta785 3 жыл бұрын
Thanks. I learned something.
@sinterusde8869
@sinterusde8869 3 жыл бұрын
All In hear is disarray ... ... ... Okay, I'm bad at this. But really, I hated arrays and pointers when I first practiced with them. Your tut is very helpful
@CodeBeauty
@CodeBeauty 3 жыл бұрын
Happy to hear that! ☺️🤗🤗
@aykut8517
@aykut8517 4 жыл бұрын
thanks for upload ,really helpfull
@MarošDočekal
@MarošDočekal 10 ай бұрын
Hi, thanks for video. I have question if it is better to use nullptr compare to NULL ?
@CodeBeauty
@CodeBeauty 10 ай бұрын
It is better to use nullptr 😃
@409_manohar6
@409_manohar6 2 жыл бұрын
Hi mam ur the one who motivated me and do u remember me?
@atharvagarwal6412
@atharvagarwal6412 Жыл бұрын
Is it weird that when I run the code at 4:12 on g++ 13.0.1, I get no errors?
@CodeBeauty
@CodeBeauty Жыл бұрын
If it's not broken, don't fix it 😁
@khalidessamoudi2291
@khalidessamoudi2291 3 жыл бұрын
Really beauty coding
@toastyren3991
@toastyren3991 3 жыл бұрын
Very interesting video, you're amazing Saldina ;-) Thank you very much for the time you spend making those videos ;-)
@Yes.Its.
@Yes.Its. 3 жыл бұрын
Yes, please make video between linked list and arrey! Pleease ^^
@siddharthasarmah9266
@siddharthasarmah9266 4 жыл бұрын
Please do the difference video🙏🙏
@rmv9064
@rmv9064 Жыл бұрын
Thank you SO MUCH.
@legolas5684
@legolas5684 4 жыл бұрын
Great job!
@treyglass4883
@treyglass4883 3 жыл бұрын
what key switches do you have
@piyushkashyap2322
@piyushkashyap2322 2 жыл бұрын
BEST💯
@Pendyala-sharath
@Pendyala-sharath 3 жыл бұрын
What is the extension which is automatically formatting the code?
@supunthilakshana
@supunthilakshana 4 жыл бұрын
Thank you very much.
@CodeBeauty
@CodeBeauty 4 жыл бұрын
You are welcome! Best wishes! 🤗💗
@inspirewithakb773
@inspirewithakb773 3 жыл бұрын
which theme you are using?
@vaughnmonkey
@vaughnmonkey 3 жыл бұрын
very helpful thank you
진짜✅ 아님 가짜❌???
0:21
승비니 Seungbini
Рет қаралды 10 МЛН
Маусымашар-2023 / Гала-концерт / АТУ қоштасу
1:27:35
Jaidarman OFFICIAL / JCI
Рет қаралды 390 М.
Pointers and dynamic memory - stack vs heap
17:26
mycodeschool
Рет қаралды 1,5 МЛН
new & delete Operators For Dynamic Memory Allocation | C++ Tutorial
15:52
Portfolio Courses
Рет қаралды 34 М.
Dynamic Arrays in C++ (std::vector)
14:14
The Cherno
Рет қаралды 387 М.
The Dome Paradox: A Loophole in Newton's Laws
22:59
Up and Atom
Рет қаралды 405 М.
SMART POINTERS in C++ (for beginners in 20 minutes)
24:32
CodeBeauty
Рет қаралды 106 М.
Mastering Memory: Allocation Techniques in C, C++, and ARM Assembly
17:05
Dynamic Memory Allocation -- C++ Pointers Tutorial [8]
18:25
Professor Hank Stalica
Рет қаралды 29 М.
31 nooby C++ habits you need to ditch
16:18
mCoding
Рет қаралды 842 М.
Черная Magic Mouse
0:53
Romancev768
Рет қаралды 807 М.
Pixel 7 и 7 Pro с Face ID - лучше iPhone 14 Pro!
21:12
Rozetked
Рет қаралды 457 М.
ЛАЙФХАК НА КУХНЕ ! 🧐🤦🏻‍♂️ #shorts #лайфхак
0:15
Крус Костилио
Рет қаралды 109 М.
amazing japanese home gadgets vlog/tiktok china #shorts
0:59
High Tech USA
Рет қаралды 17 МЛН
Лайфхак: Легально делать деньги
0:43
Satisfying Vend 😦 Ep.5 #shorts #satisfying #vendingmachine
0:23
TYE Arcade
Рет қаралды 17 МЛН