You are not logged in.

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

hasnain
Administrator
From: Chichawatni
Registered: 2014-10-13
Posts: 8,355
Website

C Language Arrays And Strings Program:

http://interviewquestionsanswers.org/quiz/C-Programming http://interviewquestionsanswers.org/qu … nd-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]){}


Failure is the first step towards seccess.

2015-09-16 05:12:03

Advertisement
Ads By Google

Re: C Language Arrays And Strings Program:



Board footer