Abstract
The maximum number of characters that a memory location can accommodate varies with the type of computer being used. Therefore, if someone wants their program to be able to run on a variety of computers and if alphanumeric characters are being read and printed, then each character should be read and written using the field specification A1. A drawback of this method is that the three rightmost locations in a word are not used. In a CHARACTER statement, the maximum number of characters wished to be assigned to each CHARACTER variable can be specified. A maximum of 256 characters can be assigned to a CHARACTER variable. By following a variable with an asterisk and an integer, the maximum number of characters that can be assigned to the variable can be specified. If a variable is not followed by an asterisk and an integer, then the maximum number of characters that can be assigned to it is one.
Published Version
Talk to us
Join us for a 30 min session where you can share your feedback and ask us any queries you have