C++ Dynamic Arrays (Dynamically Allocated Array)

Поделиться
HTML-код
  • Опубликовано: 4 окт 2024
  • C++ Dynamically Allocated Array. More often referred to as a dynamic array, although this is incorrect since dynamic array refers to another concept, but we will discuss that in another video. In this video you will learn how to allocate an array on the heap. This is referred to as a dynamically allocated array, which defers from a statically allocated array on the stack. By creating an array on the heap, the array capacity does not need to be determined at compile time. For this reason, we can create an array that can have varying sizes.
    If you need to review these topics:
    Arrays: • Arrays in C++
    Pointers: • Pointers in C++
    Pointers to Arrays/ Pointer Arithmetic: • C++ Pointers and Arrays
    Null Pointers: • C++ Null Pointers
    Dynamic Memory Allocation: • Dynamic Memory Allocat...
    C++ Playlist:
    • C++ Programming Tutorial
    Install C++ with VS Code:
    • How to set up C++ in V...
    Subscribe for more coding tutorials 😄!

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

  • @yousefebid2765
    @yousefebid2765 4 месяца назад +5

    thank you bro

  • @Viktor-mk4sl
    @Viktor-mk4sl Месяц назад +2

    Great video, thanks for explaining it well. On a sidenote, what keyboard/switches do you have? They sound amazing

    • @KennyYipCoding
      @KennyYipCoding  Месяц назад

      Thanks! The exact keyboard I'm using is:
      Keychron K5 SE Wireless Mechanical Keyboard
      White Backlight / Low Profile Gateron Mechanical / Brown

    • @Viktor-mk4sl
      @Viktor-mk4sl Месяц назад

      @@KennyYipCoding Thank you!

  • @OmerElballa
    @OmerElballa Месяц назад +1

    What keyboard do you have? It sounds amazing!!

    • @KennyYipCoding
      @KennyYipCoding  Месяц назад +1

      Thanks! The exact keyboard I'm using is:
      Keychron K5 SE Wireless Mechanical Keyboard
      White Backlight / Low Profile Gateron Mechanical / Brown