Question · Blockchain and Web3 course · Module 6: Solidity Basics

Structs

What are structs used for in Solidity?

Answer options

  • For creating custom data types with multiple fields
  • For creating functions
  • For contract inheritance
  • For error handling

You can check the correct answer by solving this task in the CodeWorlds game.