Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!bellcore!usenet From: usenet@bellcore.bellcore.com (Poster of News) Newsgroups: comp.lang.fortran Subject: Re: integer variable format address Message-ID: <1991Mar6.183820.8807@bellcore.bellcore.com> Date: 6 Mar 91 18:38:20 GMT References: <6769@idunno.Princeton.EDU> Reply-To: dph@breeze.UUCP (Daniel P Heyman) Organization: Bell Communications Research, Morristown NJ Lines: 18 >>What is wrong with the following program? >> program test >> integer k >> k=1 >> write(*,k) >> >> 1 format('here is line 1') >> end >> >> >> >>I have two FORTRAN books that suggest the write(*,k) >>statement should work. I have two FORTRAN compilers >>that give a bus error. Any ideas would be appreciated. > I used the parameter statement and got the program to run. parameter(k=1) Dan Heyman dph@bellcore.bellcore.com