![]() ![]() We can declare a two-dimensional integer array say ‘x’ of size 10,20 as:.The basic form of declaring a two-dimensional array of size x, y:ĭata_type array_name data_type: Type of data to be stored.We can see a two – dimensional array as an array of one – dimensional array for easier understanding. ![]() ![]() Two – dimensional array is the simplest form of a multidimensional array. Similarly array int x can store total (5*10*20) = 1000 elements. The array int x can store total (10*20) = 200 elements. The total number of elements that can be stored in a multidimensional array can be calculated by multiplying the size of all the dimensions.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |