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

Arrays in Solidity

How do you declare a dynamic array of uint numbers in Solidity?

Answer options

  • uint[] public numbers;
  • array<uint> public numbers;
  • uint[10] public numbers;
  • List<uint> public numbers;

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