These two forms may not be mixed independently but must be separated at the compilation; an old program, (one or several program units in the form of a main program, subroutines or functions), which is compiled in free form, has the possibility to give a different result compared with earlier when it was compiled with fixed form, compilation errors are possible.
In the same program we can mix program units written in fixed form and free form, but each unit must be only in one form and at the compilation both forms may not usually be in the same source file. Some systems using a special directive may permit program units in different form in the same file. The directive then tells the compiler which form is valid.
(1.2) Modify the program you have just compiled by replacing
comments starting with C or * with comments
starting with !
and try to use Fortran 90 free form.
Comments.
(1.3) What happens if the following small program is run using fixed form or using free form?
LOGICAL L L = .FALSE. IF (L) THEN Z = 1.0 ELSE Y = Z ENDIF ENDComments.