answersLogoWhite

0


Want this question answered?

Be notified when an answer is posted

Add your answer:

Earn +20 pts
Q: What is the largest subscript that can be used with the following array?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Why should indexes be used instead of subscripts to identify array elements?

You cannot uses indices instead of subscripts. The subscript operator [] requires an index in order to determine the subscript. Even if you don't use the subscript operator you still need an index to determine the offset of the subscript. Indeed, the only time you do not need an index is when traversing the array using a roving pointer, which is arguably more efficient than using a subscript to traverse an array since subscripts use multiplication instead of the much simpler increment/decrement operation.


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 the difference between subscript and subscripted variable in c plus plus?

Subscripts are used to identify the elements in an array, where the first element has subscript 0. Thus an array of n elements has subscripts in the range 0 to n-1. Each element may itself be an array, thus allowing multi-dimensional arrays. The subscript may be a constant or a variable. However, when declaring a static array, the subscript must be a constant. Constants include literal constants as well as named constants. A subscripted variable is simply an array or a datatype that can be divided into an array. For instance, a 32-bit int can be treated just as if it were an array of two 16-bit shorts or four 1-byte chars. Thus in the 32-bit int array, int i[10], i is a subscripted variable where i[0] is the first integer and i[9] is the last. If we then say char*c=&i, c would allow us to treat i as if it were a subscripted variable with 40 char elements (c[0] to c[39]).


How do you use subscripts with an array?

An array is a list of several related elements. You use the subscript to specify which element you want to access. For example, in Java you might have an array called myArray, with 10 elements (numbered from 0 to 9); myArray[3] would access the fourth element in the array. A variable may be used instead of a constant.


How do you solve autoit error subscript used with non-array variable?

A autoit error subscript means that a folder or subfolder cannot be found or registered. In order to fix this you either need to find a professional or edited the script to make sense so that the folder can be found.

Related questions

Why should indexes be used instead of subscripts to identify array elements?

You cannot uses indices instead of subscripts. The subscript operator [] requires an index in order to determine the subscript. Even if you don't use the subscript operator you still need an index to determine the offset of the subscript. Indeed, the only time you do not need an index is when traversing the array using a roving pointer, which is arguably more efficient than using a subscript to traverse an array since subscripts use multiplication instead of the much simpler increment/decrement operation.


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 the difference between subscript and subscripted variable in c plus plus?

Subscripts are used to identify the elements in an array, where the first element has subscript 0. Thus an array of n elements has subscripts in the range 0 to n-1. Each element may itself be an array, thus allowing multi-dimensional arrays. The subscript may be a constant or a variable. However, when declaring a static array, the subscript must be a constant. Constants include literal constants as well as named constants. A subscripted variable is simply an array or a datatype that can be divided into an array. For instance, a 32-bit int can be treated just as if it were an array of two 16-bit shorts or four 1-byte chars. Thus in the 32-bit int array, int i[10], i is a subscripted variable where i[0] is the first integer and i[9] is the last. If we then say char*c=&i, c would allow us to treat i as if it were a subscripted variable with 40 char elements (c[0] to c[39]).


How do you use subscripts with an array?

An array is a list of several related elements. You use the subscript to specify which element you want to access. For example, in Java you might have an array called myArray, with 10 elements (numbered from 0 to 9); myArray[3] would access the fourth element in the array. A variable may be used instead of a constant.


How do you solve autoit error subscript used with non array variable?

A autoit error subscript means that a folder or subfolder cannot be found or registered. In order to fix this you either need to find a professional or edited the script to make sense so that the folder can be found.


How do you solve autoit error subscript used with non-array variable?

A autoit error subscript means that a folder or subfolder cannot be found or registered. In order to fix this you either need to find a professional or edited the script to make sense so that the folder can be found.


How to make a program using array?

An array is a variable name that can store several values, not just one. Each element is accessed through the variable name, combined with a subscript - a number used to distinguish the elements in the array.Basically you usually would do each of the following:Declare the variableInitialize the array, that is, assign values to each elementRetrieve the values at some later pointHere is an example with Java:// The following will both declare an array, and assign initial values to itint myArray = {5, 10, 15}// The following will show each of the values:for (int i = 0; i < myArray.length(); i++)System.out.println("Element # " + i + " has the value " + myArray[i];Note that in Java, the element numbering starts at zero.


What is array variable?

An array is a variable containing multiple values. Any variable may be used as an array. There is no maximum limit to the size of an array, nor any requirement that member variables be indexed or assigned contiguously. Arrays are zero-based: the first element is indexed with the number 0.


Is N the symbol for the element nitrogen?

Yes. More exactly, the letter "N" is the symbol for a single atom of nitrogen in a chemical formula. A subscript number following the symbol indicates the number of atoms present in the particular part of a specific molecular formula, but if that number is 1, no subscript is used.


What is array literal in as2?

An array literal is a comma-separated list of the elements of an array. An array literal can be used for initializing the elements of an array.


Which is used to compute the difference in arrays?

arrayarray_diff(array$array1,array$array2[,array$...] )


Which one is used in array programming SISD or MISD?

MISD is used in systolic array.