02.07.2013 Views

HP Fortran Programmer's Reference

HP Fortran Programmer's Reference

HP Fortran Programmer's Reference

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Data types and data objects<br />

Intrinsic data types<br />

Here are the command lines to compile and execute the program, along with the output from<br />

asamplerun:<br />

$ f90 swap_names.f90<br />

$ a.out<br />

Before: n1 = George n2 = Martha<br />

After: n1 = Martha n2 = George<br />

Before: n3 = pork n4 = salt<br />

After: n3 = salt n4 = pork<br />

40<br />

Chapter 3

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!