on 2022 Dec 21 6:10 AM
can someone please tell me what it the difference for the below
data : name type c.
types : nam2 type c.
Request clarification before answering.
Hi can define data based on your created types:
types : nam2 type c.
data : name type nam2.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In TYPE STATEMENT you can define structure which have no physical memory on the other hand in DATA STATEMENT you can define structure with physical memory.
The TYPES statement creates a data type which are templates for creating data objects.
The DATA statement creates a data object which is an instance of a data type and occupies as much memory space as its type specifies.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
2 | |
2 | |
2 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.