Quantcast
Channel: Fortran
Viewing all articles
Browse latest Browse all 3108

character initialization using hexadecimal

$
0
0

The following specification is accepted by the compiler:

      CHARACTER*1 FALSE/Z'00'/, TRUE/Z'01'/

but is not accepted in the next case:

CHARACTER(LEN=1), PARAMETER :: FALSE=Z'00', TRUE=Z'01'

 v9synchk.for(102): error #6957: This is an illegal data type value for this parameter.   [Z'00']
      CHARACTER(LEN=1), PARAMETER :: FALSE=Z'00', TRUE=Z'01'

 

 


Viewing all articles
Browse latest Browse all 3108

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>