A value of 65

As shown in Listing 6, a value of 65 is assigned to the variable of type char named var.

As shown by the second line of output in Figure 4, when this variable is displayed as type char, the value of 65 is automatically converted and displayed as an upper-case A.

(See the table at http://www.lookuptables.com/.)

When the cast operator is used to force the insertion operator to view the variable as type short, the actual numeric value stored in that variable is displayed.