Solidity Array Of Struct

[Solved] Solidity Array Of Struct | Solidity - Code Explorer | yomemimo.com
Question : solidity array of struct

Answered by : john-appleseed

struct MyStruct {	uint8 level uint8 exp
}
function myFunc() public returns (MyStruct[]) {	return [MyStruct(5, 3), MyStruct(2, 4)]
}

Source : | Last Update : Sat, 30 Apr 22

Answers related to solidity array of struct

Code Explorer Popular Question For Solidity