please consider the following...the code below works...
CHARACTER*127 FMAT
FORMAT (/' input a FORTRAN-type FORMAT for the data')
READ (*,'(A)') FMAT
CALL CHKFMT (FMAT,IFMT)
and then...
SUBROUTINE CHKFMT (FMAT,IFMT)
CHARACTER*127 FMAT...
ok so here is my ?, how are we allowed to declare FMAT twice. most compilers in java & c complain about this b/c u can't make a distinciton as to which FMAT i am referring to. would someone plz explain how FMAT can be delcared twice and are all instances of FMAT referring to the same varialbe or not?
thanks
CHARACTER*127 FMAT
FORMAT (/' input a FORTRAN-type FORMAT for the data')
READ (*,'(A)') FMAT
CALL CHKFMT (FMAT,IFMT)
and then...
SUBROUTINE CHKFMT (FMAT,IFMT)
CHARACTER*127 FMAT...
ok so here is my ?, how are we allowed to declare FMAT twice. most compilers in java & c complain about this b/c u can't make a distinciton as to which FMAT i am referring to. would someone plz explain how FMAT can be delcared twice and are all instances of FMAT referring to the same varialbe or not?
thanks