Structs in Solidity
Struct is user-defined/custom data type where you can define some arbitrary object with some properties. You can't return the struct directly, but can return a tuple of its properties. // SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.8.4; contract HelloWorld { // struct is user-defined/custom data type where you…