Home / CSE MCQs / GO :: Discussion

Discussion :: GO

  1. Explain how arrays in GO works differently then C?
  2. A.
    Arrays are values, assigning one array to another copies all the elements
    B.
    If you pass an array to a function, it will receive a copy of the array, not a pointer to it
    C.
    The size of an array is part of its type. The types [10] int and [20] int are distinct
    D.
    All of these

    View Answer

    Workspace

    Answer : Option D

    Explanation :



Be The First To Comment