Which Is a Subscripted Variable?

Which Is a Subscripted Variable?

Subscripted variables are used to store the values of the same type in an array. ... Subscripted variables are declared by giving the variable name along with the subscript. Example: a(10) Here a is the variable name and 10 is known as the subscripted value through which we can store 10 values in the variable name a.

What is subscripted variable and a subscript?

Answer. Subscript is the index of the element in the array whereas Subscripted variable is the name of the array when it is used with a subscript to access a single element of the array.

What is subscripted variable in Fortran?

The general form of a subscripted variable is an integer or a real variable name followed by subscripts enclosed within parentheses. • For example: v(i, j, k) is a subscripted variable, where v is a variable name which may be either integer or real and i , j, k are subscripts.

James H. Sterling
Author

James H. Sterling

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.