Arrays

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

A Yes

B No

ANS:B - No

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.



img not found
img

For help Students Orientation
Mcqs Questions

One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.