This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

fortran 77


Hi,

I am using fortran 77. 

-----------------------
     real a
    do 10 i = 1, 4
       a = a + i
       print*,a
10  continue
-----------------------

In the above code variable "a" is not initialized.
When this is executed by compiling with g77, it puts
some arbitrary initial value for "a".

Is there any option in g77 to initialize a
uninitialised variable?

Thank you very much.
Chandra

 


		
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]