what is correct output?

Brooks Moses bmoses@stanford.edu
Sun Jul 31 20:14:00 GMT 2005


Jack Howarth wrote:
>    Is there a standard format for the output from the following code?
> 
>       PROGRAM HELLO
>       INTEGER FVIOLS
>       FVIOLS=0
>       PRINT *,'FVIOLS =',FVIOLS
>       END
[...]

A "*" in the format means list-directed output, which in practice 
amounts to "write it so that it's readable".  Specifically, all of the 
various details of the formats are processor-dependent.

(See 10.8.2 of the F95 standard for details.)

- Brooks



More information about the Fortran mailing list