Array in C

Welcome to your Array in C

1. Fast access of array elements can be done using____
2. An array stores elements ____ in the memory
3. In ____ , address of the array elements are passed to function
4. In int x[10]; the number 10 specified in the square bracket represents the
5. Output of the following program isvoid main()
 {
int x[]={1,2.2,3},i;
clrscr();
printf("%f",x[1]);
}
6. Each array element is stored in separate
7. An array is a collection of multiple elements of ____ data type
8. If in char c[]="Hello" the H is stored at 65470, then the o is stored at ___
9. In int x[5]={2,3,4,5,6}; the base address is 65564, then the location of element 2 is ______
10. What is the output of int num[2][3]={1,2,3,4}, {3,4,5,6} }; ?
11. How many rows and columns are there in int num[2][3]={ {1,2,3}, {4,5,6} }; ?
12. The array int x[5]; can hold values in between_______ to ______
13. What is the value of a[1] in static int [3] ; ?
14. In int x[3] if x[0]=12 and x[2]=26, then x[3] is ____
15. One-dimensional array needs only ____ subscript.
16. In int x[5], the x represents a _____
17. When in between two arrays of the same data type, if the values are interchanged then _____
18. Array element counting starts from zero, hence the statement int x[0] holds _____
19. The 1st element according to C compiler physically is a _____
20. In long k[4] the total memory occupied by the array is____

2 thoughts on “Array in C”

Leave a Reply

Your email address will not be published. Required fields are marked *