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'
Thank you in advance for your messages .
Christian de Polignac
Institut Laue Langevin
156 X
38042 Grenoble Cedex France
e-mail : [log in to unmask]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|