Home / C Programming / Arrays :: Discussion

Discussion :: Arrays

  1. In C, if you pass an array as an argument to a function, what actually gets passed?

  2. A.
    Value of elements in array
    B.
    First element of the array
    C.
    Base address of the array
    D.
    Address of the last element of array

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    The statement 'C' is correct. When we pass an array as a funtion argument, the base address of the array will be passed.


Be The First To Comment