pragma solidity ^0.4.24; contract ArrayTypes { struct MyData { string _name; uint _no; } uint[3] fixed_storage_array; uint[] dynamic_storage_array; string[] string_array; bytes[] bytes_array; bool[] bool_array; MyData[] struct_array; function definArrays(uint a) public pure { uint[3] memory _fixed_memmory_array; uint[] memory _dynamic_memory_array = new uint[](a); string[] memory _string_array = new string[](a); bytes[] memory _bytes_array = new bytes[](a); bool[] memory _bool_array = new bool[](a); MyData[] memory _struct_array = new MyData[](a); } }
0.4.24