C Language - Arrays

You Are Here :: Home > C Language > Arrays - General Questions

 
13.

Identify the incorrect declaration of arrays from the following

A. int a[50]; B. float values[10][20];
C. double a[50]; D. int score[10,15];




14.

Which of the following accesses the seventh element stored in array?

A. array[6]; B. array[7];
C. array(7); D. array;




15.

Disadvantage of array in C is

A. We can easily access each element B. It is necessary to declare too many variables
C. It can store only one similar type of data D. None of above




16.

What will be the output of the following statements ?

int x[4] = {1,2,3}; printf("%d %d %D",x[3],x[2],x[1]);

A. 03%D B. 000
C. 032 D. 321




17.

Array is used to represent the following

A. A list of data items of different data types. B. A list of data items of real data type.
C. A list of data items of same data type. D. A list of data items of integer data type.




18.

Arrays are passed to a function arguments by

A. value. B. reference.
C. both value & reference. D. none of the above.




« previous

1

2

3

4

5

6

7

8

9

...

next »

 
 
 



© 2013 freshersindia.in ® | Copyrights | Terms & Conditions
   Designed by Freshers India
Catch Us on