pragma solidity ^0.4.18; contract SimpleStore { uint[6] data; uint x; // Defining function to // assign values to array function array_example() public returns (uint[6] memory) { data = [uint(10), 20, 30, 40, 50, 60]; } function result() public view returns(uint[6] memory){ return data; } }
0.4.18