What is an array?

a) What is an array? Show different methods to declare and initialize one dimensional
array. Draw how an integer array of 6 elements having base address 5001 is stored in
memory. Explain actual storage of two dimensional array a[3][4] in the memory with
diagram.
b) Write an algorithm to test whether a given number is prime or not.


Leave a Reply