Computer Applications
The following statement :int code[ ]= {25,37,38,42};
- assigns 37 to code[1]
- assigns 25 to code[1]
- assigns 38 to code[3]
- assigns 42 to code[0]
Related Questions
An array element can be accessed through:
- dots
- element name
- index number
- none
Indicate the error message which displays, if the following statement is executed :
int a[5] = {28,32,45,68,12};- Insufficient cells
- Array index out of bounds
- Elements exceeding cells
- None
The elements of array[50] are numbered:
- from 1 to 50
- from 0 to 49
- from 1 to 51
- none
Which of the following function finds the size of array
char m[] = {'R', 'A', 'J', 'E', 'N', 'D', 'R', 'A' };?- m.sizeof (a)
- m.elementsof (m)
- m.length
- None