C++ POINTERS (2020) - What is a void pointer? (for beginners) PROGRAMMING TUTORIAL

Поділитися
Вставка
  • Опубліковано 29 вер 2020
  • Void pointer in C++ is a general-purpose pointer, which means a special pointer that can point to object of any type. It is a typeless pointer also known as generic pointer.
    But void pointers have certain limitations as well. They cannot be dereferenced directly. In this video, I'm explaining how void pointers are used in C++ on a simple, beginner-friendly example.
    📚 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
  • Наука та технологія

КОМЕНТАРІ • 152

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

    📚 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.

  • @remysalone
    @remysalone Рік тому +14

    I am now a university freshman from China majoying in Network Security. I started to learn C++ when I was in high school but gave up due to its complex concepts. Now that we have to learn C++ in my major, I turned to this video to help. Your explaination is really clear and the words in this video is amazingly understandable for a Chinese whose mother tongue is not English. Really thanks you a lot and wish your channel will become better.

  • @francescofaccodelagarda5408
    @francescofaccodelagarda5408 3 роки тому +32

    Thank you SOooooo much, Saldina!!! I used to be a wizard in C++ (back in the 1990's ..) ... havent used it for 30 years and you are the best "refresher" I've seen! A pleasure to follow you: charming, whitty, clear .. well done!

  • @hussainaqeel7371
    @hussainaqeel7371 3 роки тому +23

    Hey guys! I have a tip, instead of passing a type parameter and checking for different possibilities with a switch statement, you can use a C++ "template", they allow you to pass type arguments to functions!
    template // `T` will be the data type
    void print(void *ptr)
    {
    cout

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

      The "" Is redundant, compiler understand types. Good advice, bro

    • @AK-ey5ms
      @AK-ey5ms 2 роки тому +10

      Why would you do something like this?
      template
      void print(T* in_ptr) {
      std::cout

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

      Nice

    • @767corp
      @767corp Рік тому

      @@AK-ey5ms Best and fastest way !

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

    I am from Ethiopia .
    I am second year Hawassa university student .I woud like to say , thank you for your great helping for us.I get great knowledge from you

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

    Why haven't I seen this channel sooner. Your tutorials are so helpful thank you!!!!

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

    i do appreciate your work for making clear and understandable videos about pointers

  • @roninhacked2045
    @roninhacked2045 3 роки тому +23

    hey code beauty
    your tutorials are so understandable
    so please can you bring about competitive programming course

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

    Thank you so much, you've taken away a lot of my confusion about pointers.

  • @JazzInATinCan
    @JazzInATinCan 10 місяців тому

    Have watched a couple of the pointers videos now - great content!

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

    Thanks that cleared up all of my questions on void pointers 🎉👍

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

    You are very good at teaching . Thanks a lot

  • @mongalmoy_karmakar
    @mongalmoy_karmakar 6 місяців тому

    Thank you so much for this amazing series of pointers.

  • @jrdlcz
    @jrdlcz 6 місяців тому +1

    Thank you for sharing this video!❤

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

    Very well explained!

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

    Thank you so much for your work!!!

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

    Thanks, this vid is actually so well explained

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

    Once again.. Awesome!

  • @sheikharooj5762
    @sheikharooj5762 12 днів тому

    You are an asset .. thank you so much❤

  • @adrienc8716
    @adrienc8716 13 днів тому

    very clear ! Thank u very much

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

    Hübsch und klug, gefällt mir.

  • @projetistadegambiarras.6631
    @projetistadegambiarras.6631 3 роки тому +3

    excelente tutorial muito bom .

  • @dandon.3667
    @dandon.3667 6 місяців тому +1

    You are the best teacher 💙💙

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

    Struct and void pointers are powerfull!

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

    Love the way you teach

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

    i assume this code is only theoretical, and in production you would use function overloading?
    void print(int* val) {
    cout

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

    Huge thanks for these videos

  • @AbdulRehman-ch4kw
    @AbdulRehman-ch4kw 3 роки тому

    Thanks... This was Very Useful :)

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

    We can simply use the keyword auto to print a pointer of any type, like:
    #include
    void printPtr(auto* ptr)
    {
    std::cout

    • @cmnikola
      @cmnikola 7 місяців тому +1

      i been trying to find this comment!

    • @user-rf9mc8ql5u
      @user-rf9mc8ql5u 7 місяців тому

      #include
      template
      void printPtr(T* ptr)
      {
      std::cout

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

    Thank you! Excellent video! But can we use auto* in lieu of void* ?

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

    As a joke I only understand "avoid pointer" :)

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

    Very good explanation, brilliant!

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

    thank you maam for such nice explanation....love from INDIA

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

    saldina ! i appreciate your work
    but plz make a detailed video on link lint in c++

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

    Hi,
    I learned a lot about C++... thanks!
    But i don't get something, how can everything I learned be useful, could you make some mini-projects about real world applications in the most realistic way possible (So that I get the idea about what is it to work like a C++ programmer)

  • @neck-o
    @neck-o 8 місяців тому

    I just realized that you don't even need a switch statement to determine the datatype of the passed pointer. Just declare a template above the function: template , and use whatever datatype passed with the function as the pointer to cast as: func(&anInteger), then inside the function: cout

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

    You can use template after that create a function to hold every data type.

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

    great lesson..🙂
    Should i make "switch case" for every data types..i want to pass to the void pointer..

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

    Thank you beauty!

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

    Finally i rewire my brain ❤

  • @miguelferreira-xy7gq
    @miguelferreira-xy7gq 2 роки тому

    merci thank you

  • @Peter-lq1xj
    @Peter-lq1xj 3 роки тому +2

    Amazing

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

    very good.

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

    Thanks

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

    nice
    tks a lot

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

    girl, you rock! congrats to you and your team... if there is such

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

      No team, only me 😅☺️ Thank you 🙏

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

      @@CodeBeauty whoa... then you rock and roll ;)

  • @Fullstackdev-
    @Fullstackdev- 2 роки тому

    thanks

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

    Hi, please can you do a video tutorial on how to build a simple game in c++ console. Thanks!

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

    Is it possible to avoid the 2nd argument 'char type' and instead get the type from the first argument somehow?

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

    I was trying to find out what is IntPtr datatype and came upon your video. Is function that you wote explanation for IntPtr or have I got something wrong?

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

    Hey nice video!
    i just wanted to mention that on 8:34 i had problems with understandings the difference between *((int*)ptr) and (int*)ptr.
    becasue it was too fast for me. But in the end i unnderstood it. Here is a code for anyone who are still struggling:
    int number = 42; // Initialize an integer variable 'number' with the value 42
    void* ptr = &number; // 'ptr' points to the address of 'number'
    int* intPtr = (int*)ptr; // We cast 'ptr' to an 'int*' pointer
    int value = *intPtr; // We dereference 'intPtr' to obtain the value '42'
    so how i understood it is that *((int*)ptr) casts the datatype to an intiger and to acces the value you need to write the * ((.... in the end

    • @lukesky9627
      @lukesky9627 6 місяців тому

      *((int*)ptr) means its cast into an int pointer (the inner parentheses containing "int*") and the entire thing is dereferenced, thats why there are the outer parentheses and the "*" at the beginning. Write it out to the console and you will see the difference between *((int*)ptr) and (int*)ptr.

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

    is the break command in the switch necessary, because won't type fail the other cases if it passes one?

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

    Thank you beauty.

  • @Dani-mp2we
    @Dani-mp2we 3 роки тому +1

    using void pointers is a better solution than function overloading? in terms of performance

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

    Im struggling with pointers and arrays, hope it will be covered in future

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

      Yep, I will make a video about that as well 😊

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

    Here's an alternative way for doing this but with generics and templates
    ```
    #include
    using namespace std;
    template
    void print(void* _ptr);
    int main()
    {
    int n = 5;
    char l = 'a';
    print(&n);
    print(&l);
    system("pause>0");
    }
    template
    void print(void* _ptr)
    {
    cout

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

    @code beauty! in one of your videos you had shown the method of sorting variables inside an array ....... Kindly provide the link to this video as soon as you can.... I had ever watched it but now I could not find it!

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

    Doubt 1: function overloading with different pointers in the signature?
    Doubt 2: Templates with pointers? like, say typename t which results in parameter void fn(t* var) ???

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

    Is it good practice to use pointers in C++ ? To me, an "object" implicitly removes the need for pointers. I've never used C++, but I have used C# a lot and never got in a situation where a pointer was needed...

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

    Hey Saldina ! why did you make the type char??

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

    Am I wrong for thinking that it would be better to just use a template function to deal with the different data types being passed in instead of having to use a void pointer with a bunch of switch statements?

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

    instead of using a void pointer, can't we use a template and typedef to create a sample function ? or my idea is not so good for some reasons ?

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

    hello mam can explain about null pointers, where and when we use null pointer, main reason to use null pointer ...... plz mam

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

    you can use an auto type pointer so it can handle any type

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

    I have 2 questions - (1) On lines 4,5,7 & 8 you use "Ptr" but on line 10, you use "ptr", why? (2) At 5 mins into the video, you have 2 funtions, one for "int" and the other for "char" and when you run the program it outputs number 5 and letter a which is fine. Then around 11:30 mins into the video you have the "void function" which does the same thing - but the code for the two original functions is still there so how does the computer know which functions to use because now there are three functions to chose from. What is it that I have missed here?

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

    Do you have a video on fn pointers

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

    I have just started to learn C++ from your first video .. I know some basics of C so can guide me the sequence of your tutorials and how much days it will take to understand the codes written in C++. It will help a lot .. thanks in advance and thanks for doing such great videos .

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

      In my opinion, in programming, there is no final goal to achieve where you can say "Okay, I know enough, I'm good now"
      This is the kind of profession where you learn every day. So take it easy, be consistent, but don't be hard on yourself, and enjoy the process of learning each day. Before you expect it, you'll be able to look back and say "Well, I feel like reading/writing code became like reading/writing English"
      I remember a few years ago when reading code felt like trying to understand hieroglyphs. I couldn't wait to become "good" and not have to struggle with that anymore, and then I decided to stop stressing about it and focus on improving things that I felt were my weak spots, and over time, that feeling of not understanding code or not being able to write it just disappeared.
      I can't tell you how long it will take, I don't think anyone can, but I can tell you that if you invest 1-2 hrs every day for a year, you'll be able to see huge progress. And you can even take weekends off. 😊

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

    Nice and clear, but honestly, void pointers are not a "beginners" subject in C++ because the only time one should be using them is in highly advanced situations.
    I appreciate you are trying to construct an example that is easy to follow, but it concerns me that a beginner might interpret this as a good way to design code. This is the absolute antithesis of C++'s approach to strong typing.

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

    Break is missing in the switch-case structure.

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

    Hey, question. You said something about a logic error. But if you type out each case for each type, could the program run anywhere you need it to in your code, by reference the void code again at lets say line 300, and line 3000?

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

      Yes, you can invoke "print" function as many times as you want. Are you familiar with the concept of functions? I did a short series about functions in C++, that can help you understand this better.
      And a logical error is related to the error that your compiler is not able to see, but it will cause your program to behave in an unexpected way.
      For example, a logical error can be if you try to calculate how many seconds there is in a day, and instead of calculating 24 (h) * 60 (min) * 60 (sec) you do something else. Your compiler will not know, but you will get the wrong result.

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

    What is the switch function for?

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

    Looks more like a C approach than a C++ solution. In C++ you would make “print” a templated function or use a std::variant as the type. Usually you don’t need “void*” in modern C++. Also, using C style typecasting usually is a code smell in C++.

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

      Yeah you're right, but I think the point of this video is to teach beginners what void pointers are and how to use them and I think she did a great job at that in only 15 minutes. Void pointers are just a tool, a legacy tool but I think beginners should know them because probably they'll have to deal with legacy code more often than they would think.

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

      @@Novecento Agreed.

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

      I agree that void pointers are not usually needed.
      However, I do wonder why you would call C style cast a code smell?
      If you know what you're doing, a cast is a cast.
      Right?
      char carr[4];
      int *ptr = (int*)carr;

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

      @@carloni1997 It can lead weird behavior, when used for casting objects in a class hierarchy and the compiler can not spot the error whereas if you use the correct C++ cast, the compiler will tell you the error.
      Here is a nice article about the different kind of casts.
      arne-mertz.de/2015/01/a-casting-show/

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

      @@muadrico I agree it can lead to weird behavior.
      Simplest possible weird thing would be:
      float fval;
      int *ptr = (int*)&fval;
      (*ptr) = 5;
      Weirdness here would come from a fact floats are stored differently than integers.
      I also like article you shared.
      Examples and explanations. Thank you. It was a worthy read.
      And it gave me a little bit to think, so with that in mind, I would say this:
      C++ casts are used for safety, since they can trow exceptions and compiler errors.
      But if you really know what you're doing, C style casts are totaly legit.
      And if you really, really know what you're doing, C style casts shouldn't lead to weird behavior.
      Oh, and my favorite part was: Downcasts in class hierarchies.
      P.S.
      B2* pb2 = (B2*)((void*)&d); gives me the same result as a static_cast

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

    but why when i do extra case 'd':cout

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

    11:28 I believe the "break;" statement is missing

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

    It’s Christmas time, Abebe and Alemu woke up one day and found N presents under their Christmas tree, each present has a unique number from 1 to N, since Abebe love even numbers and Alemu love odd numbers they decided that Abebe will take all the presents that have an even number written on it and Alemu will take all the presents that have an odd number written on it, but they don’t know how many presents they will get each and they are both lazy to count the presents right now so they asked for your help to tell them how many presents each of them will get using a function called “Christmas()“...please help me with this question ....U are my Excellent lecture ❤❤

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

    isn't it better to use:
    case 'i': cout

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

      That's correct. While both approaches technically accomplish the same task, using static_cast is generally preferred in modern C++ code because it provides stronger type checking and better readability. It's a good practice to use the type-safe features provided by the language whenever possible.

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

    this is more C style really than C++ , in the future consider teaching templates to solve this same problem where you used void pointer.

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

    Isn't this like an complicated way of doing what a function template does?

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

    break statement was missing inside switch case

  • @nikhilkumar-ww4wh
    @nikhilkumar-ww4wh 2 роки тому

    i love u maam

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

    singing "it's my memory and I'll cast it to what I want to" (referencing the Leslie Gore song)

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

    Regarding my two questions 1 day ago I have now worked out the answer to my second question but I am still unsure about the first.

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

      bro its not important name, two years have passed, how are you?

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

    It would be better if you use a Dark Theme for VS

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

      Some people told me that they have to watch the videos on lover resolutions and that it is much easier to see the code when it is on a light background instead of a dark one. In regular life, I prefer a dark one as well, but because of the reason that I mentioned I use light for videos 😊

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

    did we forget the break between cases?

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

    save life C++ channel

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

    The part missing in the case is "break;"😅. Im not sure xD let me continue to video

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

    Hi, this is my code for printing out a letter using functions and pointers, but I am getting an error - "invalid conversion from 'const char*' to 'char*' -fpermissive". Could you please help me solve this. Thanks
    #include
    using namespace std;
    void printNumber(int* numberPtr){
    cout

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

    11:27 question
    Answer: Break;

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

    It's Break & Default.. Hope So :)

  • @AlexTrouman-oi1yp
    @AlexTrouman-oi1yp 7 місяців тому

    in switch what about default !!!!!??

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

    why not use a template instead?

  • @Superman-tm8cp
    @Superman-tm8cp 6 місяців тому

    Why can't we use templates instead of switch? It works better and takes less time to write the code

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

    11:25 Break statement is missing

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

    11:32 I did not watch after that second. I guess you need to finish CASE with BREAK; and also you also need to add DEFAULT in SWITCH function. At lease we are doing it in Java :)

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

      in c++ u dont need default

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

      You will not get an error if you don't have a "default", but if you want to cover some default situation, that is what "default" is meant for 😊

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

      @@CodeBeauty "if any of these conditions not happens then do it..." I guess you are telling this to me in your style, I like it :)

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

    Mam break keyword is missing

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

      Yep, that is the correct answer. 😊

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

    The stress of the word "parameter" goes on the second syllable. I've learned a few things from you, so it's only fair you learn something from me.

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

      I already have a few filmed videos where I probably pronounce it the wrong way, but I'll try to fix that pronunciation bug in the future vidios, and say pəˈramədər instead. 😁😅
      Thanks! 🤗🤗

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

      @@CodeBeauty I'm British, so if you're going to pronounce it properly, I'd rather you pronounce it 100% properly, that is, the way it's written, with a t. Oh, I forgot, the word "address" also has the stress on the second syllable.
      Great tutorials, by the way. Thanks.

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

    You edit video and don't let viewers know that there was unexpected result when you didn't used break;
    i think you must have shown cause it helps beginners to understand much better, instead of sayin that you noticed when i think you didn't, you came to know when you saw the output.

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

    A through and amazing explanation. But saldina you seeemed to be too much serious in this video. You are an amazing instructor , but you can be somewhat amusing also.👍 Keep up the great content.

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

      it kinda paints them in a bad light I feel. It's being able to play around with memory like this which is what makes C/C++ so fun (but yes, it's right to warn people the gloves are off as a lot of other high level languages are more restrictive about types)

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

    11:25 We are missing a break.

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

      Yep. Glad to see that you are still here 🤗

  • @dragone521
    @dragone521 6 місяців тому +1

    Break;