1.

Which of the following is correct way to define the function fun() in the below program?

#include<stdio.h> int main()
{ int a[3][4]; fun(a); return 0;
}

A. <pre><code class="cpp">void fun(int p[][4]) { } </code></pre>
B. <pre><code class="cpp">void fun(int *p[4]) { } </code></pre>
C. <pre><code class="cpp">void fun(int *p[][4]) { } </code></pre>
D. <pre><code class="cpp">void fun(int *p[3][4]) { } </code></pre>
Answer» B. <pre><code class="cpp">void fun(int *p[4]) { } </code></pre>


Discussion

No Comment Found