a) Define an array. Write the syntax for array declaration. b) Write the initialization statement for an array num with the numbers 29, 36,57, 78, 94. (2 ) (2)
c) If AR is an array, which element will be referenced using AR[4]
Answers
Answered by
2
Explanation:
An array is a collection of elements of the same type placed in contiguous memory locations that can be individually referenced by using an index to a unique identifier. Five values of type int can be declared as an array
Array declaration syntax is very simple. The syntax is the same as for a normal variable declaration except the variable name should be followed by subscripts to specify the size of each dimension of the array
Answered by
0
Explanation:
if AR is an array,which element will be referenced USING AR(4)
Similar questions
Social Sciences,
20 days ago
English,
20 days ago
English,
1 month ago
Math,
1 month ago
English,
9 months ago