Skip to main content

Now, with the new versions of solidity you can return a struct also by using memory keyword after writing struct name in return type.

Example:

function ___(___) ____ ___ ___ returns(struct_name memory){ _________; return struct; } 
 function ___(___) ____ ___ ___ returns(struct_name memory){ _________; return structInstance; } 

Now, with the new versions of solidity you can return a struct also by using memory keyword after writing struct name in return type.

Example:

function ___(___) ____ ___ ___ returns(struct_name memory){ _________; return struct; } 

Now, with the new versions of solidity you can return a struct also by using memory keyword after writing struct name in return type.

Example:

 function ___(___) ____ ___ ___ returns(struct_name memory){ _________; return structInstance; } 
fix formatting code
Source Link
Antonio Carito
  • 2.5k
  • 3
  • 11
  • 24

Now, with the new versions of solidity you can return a struct also by using memory keyword after writing struct name in return type.

eg. function () ____ ___ ___ returns(struct_name memory){ _________; return struct; }Example:

function ___(___) ____ ___ ___ returns(struct_name memory){ _________; return struct; } 

Now, with the new versions of solidity you can return a struct also by using memory keyword after writing struct name in return type.

eg. function () ____ ___ ___ returns(struct_name memory){ _________; return struct; }

Now, with the new versions of solidity you can return a struct also by using memory keyword after writing struct name in return type.

Example:

function ___(___) ____ ___ ___ returns(struct_name memory){ _________; return struct; } 
Source Link

Now, with the new versions of solidity you can return a struct also by using memory keyword after writing struct name in return type.

eg. function () ____ ___ ___ returns(struct_name memory){ _________; return struct; }