Modifying an array parameter in a function modifies the


In C++

  • Arrays are zero-based.
  • Supplying more initial values in an array declaration than the array's capacity is an error. If too few initial values are supplied, 0 is used to initialize the remaining elements.
  • The capacity of char arrays should be large enough to store the terminating null character.
  • It is good practice to associate type identifiers with arrays (using typeset) and then use these type identifiers to declare the types of array objects.
  • Modifying an array parameter in a function modifies the corresponding array argument.

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Modifying an array parameter in a function modifies the
Reference No:- TGS02583849

Now Priced at $10 (50% Discount)

Recommended (97%)

Rated (4.9/5)