answersLogoWhite

0


Best Answer

<storage_class> <type> <identifer> '[ '<number1> ']' '[ '<number2> ']' ... ';'

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Define the declare statement for multi-dimension array?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

You can use a variable to declare an array's size true or false?

True and false in the same time, because even so you can declare array size using notation for variables you have use constwhich makes your variable basically a constant:const int arraySize = 10;In Java, you can use any expression to define the array size, when you create the array. Once you create an Array object, however, you can't redimension it - but you can create a new Array object and destroy the old one.


How do you declare an array in easytrieve?

your wish


What is the difference between array and string of array?

When we declare an array of characters it has to be terminated by the NULL , but termination by NULL in case of string is automatic.


Declare an array of 100 integers?

int array_name [100];


How do you declare an array of buttons in Java?

To declare an array of buttons in Java, you would use the following syntax: Button[] buttonArray = new Button[n]; where n is the number of buttons you want in the array. This creates an array of n buttons, where each element can hold a reference to a Button object.


How do you declare an array alpha of 10 rows and 20 columns of type int?

int array[2][10][20];


How do you declare an array of five pointers to chars?

char *p="ragav"


Is it possible to declare an array of numbers in an integer form?

Yes: int[] integerArray;


In Computer programming Why is it considered good programming practice to define the number of array items as a constant before declaring the array?

In computer programming, (1) When a number is needed several times in a program, it is good practice to give that number a name. (2) When a name refers to a number that will never change during a run of a program, it is good practice to declare it as a constant before using it. In most programming languages, we do not define the number of array items as a constant. In many programming languages, it is easy to add items to an array, and an array keeps track of the number of items it holds, which a program can access using something like "array.length" or "array.shape". However, in C and C++ programming, the programmer must define the size of the array at the time it is defined, and the array does not keep track of the number of items it contains. To not define your array would leave the program open to unchecked growth. "Capping" the array with an upper value ensures that, if something goes wrong, you will not crash the application or system. Also, capping the array will make debugging potentially easier. Capping requires using that number in several places, and so (1) tells us it is good practice to give that number a name. Since it is not possible(*) to change the size of an array in C or C++, the number that holds the number of items in the array will never change, and so (2) tells us it is good practice to declare it as a constant. (*) There are a few tricks one can do with malloc() and realloc() that have the same effect as resizing an array, although technically all those tricks merely create a new fixed-size array.


What are the demensions of an array?

The numbers that define its size:int x[12][24];


How do you declare a string array and add elements to it in C plus plus?

You cannot add elements to a fixed array in C or C++. If, however, the array is declared as a pointer to an array, you can add elements by allocating a new array, copying/adding elements as needed, reassigning the new array to the pointer, and deallocating the original array.


How do you declare an int array?

we define the array isArray array[]={1,2,3,4,5} this is the integer ArrayArray array[]={"apple","banana","carrot","mango"} this is the String Array