Christian de Polignac wrote:
>
> here is a Fortran program ( a Fortran90 program too :fixed format
>
> character*4 ch
> data ch/'12(CR)
> 134'/(RC)
> print *,ch
> end
>
> Is this program a valid (fortran77) program ? and why yes or no
> Is this program a valid (fortran90) program ? and why yes or no
>
> What should be the result with Fortran77 compiler or
> with a standard conforming Fortran90 compiler
>
> The answer is
>
> '12 ' or '1234'
>
The answer seems to be '12 ' either with f77 or f90 in fixed format,
the blanks after '12' until column 72 being included in the string.
regards
--
-----------------------------------------------------------------------
Pierre Hugonnet, PhD Student (Geophysics) |phone: 33- 5 59 83 57 94
ELF Exploration Production, PAU (FRANCE) |fax : 33- 5 59 83 48 58
Geological and Geophysical Research Div. |mailto:[log in to unmask]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|