HP Fortran Programmer's Reference (September 2007)

Data types and data objects
Intrinsic data types
Chapter 5122
Here are the command lines to compile and execute the program, along with the output from
a sample run:
$ f90 swap_names.f90
$ a.out
Before: n1 = George n2 = Martha
After: n1 = Martha n2 = George
Before: n3 = pork n4 = salt
After: n3 = salt n4 = pork