Array in C

Welcome to your Array in C

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

One thought on “Array in C”

Leave a Reply

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