Fixed array in Solidity


// SPDX-License-Identifier:GPL-3.0

pragma solidity  0.8.0 ;
contract local
{
    uint8 public count=255;
    uint[5] public kar=[10,50,60,40,85];
    function length() public view returns(uint)
    {
        return kar.length;

    }

} 

Comments

Popular posts from this blog

React Installation with Vite and Tailwind css (Steps to Installation)

Insert Data In mongoDb

Class methods as an alternative Constructor