August 2018
Intermediate to advanced
404 pages
11h 19m
English
Follow these steps to create arrays in solidity and to perform read/write operations:
uint[10] numbers;struct Person { uint id; string name;}Person[] candidates;
// array of 3 dynamic arrays of boolbool[][3] table;
Note that the index value is reversed when compared with other languages. For example, to access the first element in the third array, you use a[2][0]:
contract test { address[] contributors; function donate() ...