हिंदी

Differentiate between the following: Ordinary variable and array variable. - Computer Applications

Advertisements
Advertisements

प्रश्न

Differentiate between the following:

Ordinary variable and array variable.

अंतर स्पष्ट करें

उत्तर

S. No. Ordinary variable Array variable
1. It refers to a single variable that can only contain one value. A collection of variables with the same data type can have various values.
2. No index notation is used for ordinary variables. In addition to the variable name, the index value must be given in square brackets.
3. Because it relates to a single variable, the .length method cannot be applied. The .length method can be used to ascertain the array's size.
shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 3: Arrays (Single Dimensional and Double Dimensional) - EXERCISES [पृष्ठ २४०]

APPEARS IN

अविचल Computer Applications [English] Class 10 ICSE
अध्याय 3 Arrays (Single Dimensional and Double Dimensional)
EXERCISES | Q VI. 3. | पृष्ठ २४०
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×