types in solidity

The solution for “types in solidity” can be found here. The following code will assist you in solving the problem.

// SPDX-License-Identifier: GPL-3.0

pragma solidity >=0.7.0 <0.9.0;

contract MyTypes {
bool public myBoolean= false;
/// uint32 uint16 unit8(0,255)
uint256 public myUnit= 56778;
int8 private myInt= -123;
int16 internal myInternal= 1234;
//default address 0x0000000000000000000000000000000000000000
address public myAdress;

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

Similar Posts