Question:

Explain how arrays in GO works differently then C ?

Answer:

In GO Array works differently than it works in C

  • Arrays are values, assigning one array to another copies all the elements
  • If you pass an array to a function, it will receive a copy of the array, not a pointer to it
  • The size of an array is part of its type. The types [10] int and [20] int are distinct

Keywords:

© 2017 QuizBucket.org