Home / C Programming / Declarations and Initializations :: Discussion

Discussion :: Declarations and Initializations

  1. Is there any difference in the following declarations?
    int myfun(int arr[]);
    int myfun(arr[20]);

  2. A.
    Yes
    B.
    No

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    Yes, we have to specify the data type of the parameter when declaring a function.


Be The First To Comment