Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 568 Bytes

3.04.md

File metadata and controls

16 lines (11 loc) · 568 Bytes

Hands-on Exercise #4

FYI: Documentation and new terminology "underlying type"

For this exercise

  1. create your own type. Have the underlying type be an int.
  2. create a VARIABLE of your new TYPE with the IDENTIFIER x using the var keyword
  3. in func main a. print out the value of the variable x b. print out the type of the variable x c. assign 42 to the variable x using the = OPERATOR d. print out the value of the variable x

answer