Top

Arrays

91.

The maximum number of dimension an array can have in C is

Answer: A

No answer description available for this question.

Enter details here

92.

While passing an array as an actual argument, the function call must have the array name

Answer: C

No answer description available for this question.

Enter details here

93.

Predict the output of below code: 

#include 
    int main()
    {
        int ary[2][3][4], j = 20;
        ary[0][0] = &j;
        printf("%d\n", *ary[0][0]);
    }

 

Answer: C

No answer description available for this question.

Enter details here

94.

What is the maximun number of dimensions an array in C may have?

Answer: D

No answer description available for this question.

Enter details here

Answer: B

No answer description available for this question.

Enter details here

96.

Predict the output of below code:

#include "stdio.h"
#include "stdlib.h"

int main(int argc, char *argv[]) { 
    char temp[20];
    gcvt(23.45,2, temp);
    printf("%s", temp);
    return 0;
}

 

Answer: D

No answer description available for this question.

Enter details here

97.

While sorting a set of names, representing the names as an array of pointers is preferable to representing the names as a two dimensional array of characters because

Answer: D

No answer description available for this question.

Enter details here

98.

Which of the following concepts make extensive use of arrays?

Answer: D

Whenever a particular memory location is referred, it is likely that the locations nearby are also referred, arrays are stored as contigous blocks in memory, so if you want to access array elements, spatial locality makes it to access quickly.

Enter details here

99.

Is there any difference int the following declarations?

int fun(int arr[]);
int fun(int arr[2]);

Answer: B

No answer description available for this question.

Enter details here

100.

The maximum number of dimension an array can have in C is

Answer: D

No answer description available for this question.

Enter details here

Loading…
Tags: Arrays Questions and Answers || Arrays MCQ Questions and Answers || Arrays GK Questions and Answers || Arrays GK MCQ Questions || Arrays Multiple Choice Questions and Answers || Arrays GK || GK on Arrays || C Programming Questions and Answers || C Programming MCQ Questions and Answers || C Programming GK Questions and Answers || GK on C Programming