Re: question on character-like variable defination
- From: "James Giles" <jamesgiles@xxxxxxxxxxxxxxxx>
- Date: Fri, 31 Mar 2006 00:36:45 GMT
In a character declaration, the length of the strings is specified
in one of two ways: either as a length parameter on the CHARACTER
type name itself or as a specifier on each variable being declared.
The default length (if neither of the above is given) is one character.
An explicit length on an individual variable overrides what's specified
on the typename.
Hence:
Character V1
Character*10 V2
Character V3*15
Character*20 V4, V5*40, V6
The V1 variable has a length of one. The V2 string has length
10. The V3 string has length of 15. The V4 and V6 variables
have lengths of 20. And the V5 variable has a length of 40.
--
J. Giles
"I conclude that there are two ways of constructing a software
design: One way is to make it so simple that there are obviously
no deficiencies and the other way is to make it so complicated
that there are no obvious deficiencies." -- C. A. R. Hoare
.
- Follow-Ups:
- Re: question on character-like variable defination
- From: robert . corbett
- Re: question on character-like variable defination
- References:
- question on character-like variable defination
- From: sunnylele
- question on character-like variable defination
- Prev by Date: question on character-like variable defination
- Next by Date: Re: question on character-like variable defination
- Previous by thread: question on character-like variable defination
- Next by thread: Re: question on character-like variable defination
- Index(es):
Relevant Pages
|
|