Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by whitelisting our website.

Is there any difference int the following declarations?int fun(int arr[]);int fun(int arr[2]);

Question: Is there any difference int the following declarations?int fun(int arr[]);int fun(int arr[2]);
[A].

Yes

[B].

No

Answer: Option B

Explanation:

No, both the statements are same. It is the prototype for the function fun() that accepts one integer array as an parameter and returns an integer value.