answersLogoWhite

0

What is array Explain with syntax?

Updated: 12/10/2022
User Avatar

Wiki User

9y ago

Best Answer

an array is a collection of the same data type.

User Avatar

Wiki User

9y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is array Explain with syntax?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

How does syntax affect setting?

Syntax is essential to any form of language. Without syntax, there is no setting, there is no way to explain it and no language. Language and setting are both comprised with syntax.


What is the correct syntax for declaring and initializing an array that contains the numbers 0-9?

int x[]={0,1,2,3,4,5,6,7,8,9};


How array differ from ordinary variable?

ordanry variable store one value at a time. arrays are used for storing more than one value at a time in a single variable name ordanry variable doesnt have subscript. array must have subscript syntax for ord. variable Datatype v1,v2...... syntax for array variable Datatype v1[n1],v2[n2].....


What is non linear array?

What is ARRAY, explain its typesARRAY: -It is the combination of same data type or if same data is needed more then none time then we use array.Types Normally there are two types of array.(1) One dimensional array(2) Two dimensional array(1) One dimensional array: -This array is in form a list (vertical\Horizontal) the data input output or process in one dimensional array with the help of loop.The syntax of one dimensional array will be as:Array name [strength]For exampleA [5];The structure of above syntax will be as:A (0)A (1)A (2)A (3)A (4)(2) Two dimensional array: -Two dimensional array is also called a table because it consist of rows and columns. The syntax of two dimensional arrays will be as:Data type array name [rows] [columns]For exampleInt [3] [2];The structure of above syntax will be as:A [0] [0] A [0] [1]A [1] [0] A [1] [1]A [2] [0] A [2] [1]The data input output are process in this array with the help of nested loop.


Explain the Different types of array?

one dementional array and two dementional array

Related questions

What is an array and explain its advantages and disadvantages?

what is array? explain with its advantage.


What is the correct syntax for declaring and initializing an array that contains the numers 0-9?

The syntax is: int a[10]; for (int i=0; i<10; ++i) a[i]=i;


How syntax affect setting?

Syntax is essential to any form of language. Without syntax, there is no setting, there is no way to explain it and no language. Language and setting are both comprised with syntax.


How does syntax affect setting?

Syntax is essential to any form of language. Without syntax, there is no setting, there is no way to explain it and no language. Language and setting are both comprised with syntax.


What is the correct syntax for declaring and initializing an array that contains the numbers 0-9?

int x[]={0,1,2,3,4,5,6,7,8,9};


Why array index always starts with zero?

Because that's how the language is defined. In C, C++, and many other languages, array indecies start with zero. This is by convention, and it also reflects the fact that, in C and C++, array-index syntax can also be expressed in pointer-offset syntax. The pointer locates the first element of the array, and the offset indicates how many elements to skip. If a is an array name, then the expression a[n] is completely identical to the expression *(a+n), and vice versa.


What is syntax in c plus plus for declaring a variable?

type variable {[optional array size]} {= optional initializer};


How array differ from ordinary variable?

ordanry variable store one value at a time. arrays are used for storing more than one value at a time in a single variable name ordanry variable doesnt have subscript. array must have subscript syntax for ord. variable Datatype v1,v2...... syntax for array variable Datatype v1[n1],v2[n2].....


What are the basic syntax of c program?

You have to be more specific. What part of C syntax? Do you want the syntax for outputing a number or sentence, do you want to syntax for creating a array, struct, a user defined function or what? #include iostream using namespace std; int main { cout << "Hello World!" << endl; return 0; };


What is non linear array?

What is ARRAY, explain its typesARRAY: -It is the combination of same data type or if same data is needed more then none time then we use array.Types Normally there are two types of array.(1) One dimensional array(2) Two dimensional array(1) One dimensional array: -This array is in form a list (vertical\Horizontal) the data input output or process in one dimensional array with the help of loop.The syntax of one dimensional array will be as:Array name [strength]For exampleA [5];The structure of above syntax will be as:A (0)A (1)A (2)A (3)A (4)(2) Two dimensional array: -Two dimensional array is also called a table because it consist of rows and columns. The syntax of two dimensional arrays will be as:Data type array name [rows] [columns]For exampleInt [3] [2];The structure of above syntax will be as:A [0] [0] A [0] [1]A [1] [0] A [1] [1]A [2] [0] A [2] [1]The data input output are process in this array with the help of nested loop.


Explain the Different types of array?

one dementional array and two dementional array


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.