Top

Arrays

1.

What will be the output of the program ?

#include

int main()
{
    int arr[1]={10};
    printf("%d\n", 0[arr]);
    return 0;
}

 

Answer: B

No answer description available for this question.

Enter details here

Answer: A

No answer description available for this question.
 

Enter details here

3.

What is the value of a[4]?

int a[5]={1,2,4,1,0}

Answer: C

No answer description available for this question.

Enter details here

Answer: B

No answer description available for this question.

Enter details here

Answer: D

No answer description available for this question.

Enter details here

6.

The information about an array used in program will be stored in

Answer: C

In computer programming, a dope vector is a data structure used to hold information about a data object, e.g. an array, especially its memory layout.

Enter details here

7.

Syntax of accessing the seventh element

Answer: D

No answer description available for this question.

Enter details here

8.

If x is an array of interger, then the value of &x[i] is same as

Answer: A

No answer description available for this question.

Enter details here

9.

A one dimensional array A has indices 1....75. Each element is a string and takes up three memory words. The array is stored at location 1120 decimal. The starting address of A[49] is

Answer: A

Start address of the element = base address of array + number of elements * size of each element = 1120 + 48 * 3 = 1264

Enter details here

10.

In C, if you pass an array as an argument to a function, what actually gets passed?

Answer: C

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