Blogging Community bytes in solidity Archives - Technologies In Industry 4.0

Literals And Integers in Solidity

Solidity

Literals Solidity gives the usage of literal for assignments to variables. Literals don’t have names; they’re the values themselves. Variables can change their values during program execution, but a literal remains an equivalent value throughout. Take a glance at the subsequent samples of various literals: Ilustrations of integer literals are 1, 10, 1,000, -1, and -100. Examples of string literals are “Ritesh” and ‘Modi’. String literals are … Read more