ExamVeda
Login
Home
This question belongs to C Program Arrays And Strings
Arrays and Strings
?

Which of the following is correct way to define the function fun() in the below program?
#include<stdio.h>
void main()
{
    int a[3][4];
    fun(a);
}

Answer & Solution
Correct Answer: Option A

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.

Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.