You are not logged in.

#1 2015-09-16 05:12:00

husnain
User RankUser RankUser RankUser RankUser RankUser Rank
Administrator
From: Chichawatni,Pakistan
Registered: 2014-10-03
Posts: 8,129
Website

C Language Arrays And Strings Program:

C Programming Quizzes C Language Arrays And Strings

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

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

Option A):
void fun(int *p[3][4]){}
Option B):
void fun(int p[][4]){}
Option C):
void fun(int *p[][4]){}
Option D):
void fun(int *p[4]){}

Correct Answer is Option B):
void fun(int p[][4]){}


You cannot discover the new oceans unless you have the courage to lose the sight of the shore.

2015-09-16 05:12:00

Advertisement
Ads By Google

Re: C Language Arrays And Strings Program:



Board footer