Documentation ¶
Overview ¶
Declare a named type called counter with a base type of int. Declare a variable named c of type counter set to its zero value. Display the value of c.
Declare a variable named c2 of type counter set to the value of 10. Display the value of c2.
Declare a variable named i of the base type int. Attempt to assign the value of i to c. Does the compiler allow the assignment?
Click to show internal directories.
Click to hide internal directories.