C++ Tutorial for JavaScript developers · Part 3 · Dynamic data structures

Поділитися
Вставка
  • Опубліковано 12 гру 2024

КОМЕНТАРІ • 2

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

    I think you misunderstood const in function params; just means you can''t reassign in the body of the function, but when invoking the function you can perfectly use non-const values (at least in C++17).

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

      maybe the explanation is not clear enough, but you are right