Literals

Other topics

Numeric literals

   16#A8# -- hex
   2#100# -- binary
   2#1000_1001_1111_0000 -- long number, adding (optional) _ (one or more) for readability
   1234 -- decimal

Enumerated literal

type state_t is (START, READING, WRITING); -- user-defined enumerated type

Contributors

Topic Id: 9344

Example Ids: 28940,28945

This site is not affiliated with any of the contributors.