Array is a list of items with the same datatype and the same name, Only the index differs
Arrays can be declared by brackets [ ]
real MyArray[]; //unlimited index value
real MyArray1[15]; //maximum 10 index value
myarray[1] = 1.1;
myarray[2]= 1.2;
etc...
for [i =1; i <= 15; i++)
{
print MyArray1[i];
}
A container variable can contain different types and value of simle and extended data types, including arrays
container xyz;
int a,b;
xyz = [15, 30, "SempleText"];
print compeek(xyz,3);
No comments:
Post a Comment