Discussion :: Arrays
-
Which of the following is correct way to define the function fun() in the below program?
#includeint main() { int a[3][4]; fun(a); return 0; }
A.
|
B.
|
C.
|
D.
|
Answer : Option A
Explanation :
void fun(int p[][4]){ } is the correct way to write the function fun(). while the others are considered only the function fun() is called by using call by reference.
Be The First To Comment

Whatsapp
Facebook