Array based Qs and answers
1) What is an array? Answer:- An array is a group of data of the same data type stored in successive storage locations. 2)How are elements of an array accessed? Answer:- Elements of an array are accessed using subscripts. 3)What is a subscript? Answer:- A subscript or an index is a positive integer value that identifies the storage position of an element in the array. 4)Which is the smallest subscript? Answer:- 0 (zero) 5)How many subscripts does a one and two dimensional array have? Answer:- one dimensional array has one subscript and a two dimensional array has two subscripts( row and a column subscript). 6)Write the syntax for declaring a one dimensional array. Answer:- syntax: datatype arrayname [size]; 7) Write the syntax for declaring a two dimensional array. Answer:- Syntax: datatype arrayname [row size] [column size]; 8) What do you mean by initializing an array? Answer:- Initializing of an array means storing data in to ...