View previous topic :: View next topic
|
Author |
Message |
mahithegenius
New User
Joined: 28 Apr 2006 Posts: 3
|
|
|
|
Hi friends,
what is the size of 01 wrec.
01 wrec.
02 filler pic x.
02 a pic 9v999.
02 b redefines a pic xx.
02 c pic s9(6) comp3.
This was asked in written test for EDS. |
|
Back to top |
|
|
manisha-s Warnings : 1 New User
Joined: 22 May 2006 Posts: 13
|
|
|
|
answer is 11 |
|
Back to top |
|
|
hikaps14
Active User
Joined: 02 Sep 2005 Posts: 189 Location: Noida
|
|
|
|
Hi ,
i guess it takes '9' bytes because
redefine clause doesnt take new space
it would use same space .
eg:
01 wrec.
02 filler pic x.
02 a pic 9v999.
02 b redefines a pic xx.
02 c pic s9(6) comp3.
in this case
there will be no new allocation of memmory
it means that 'b' starts pointing to the starting space allocated to 'a'
plz do correct me if u find me wrong .
Thanks ,
Kapil. |
|
Back to top |
|
|
ap_mainframes
Active User
Joined: 29 Dec 2005 Posts: 181 Location: Canada
|
|
|
|
@hikaps14,
You are spot on.
Even I think that it will take 9 bytes.
ap_mainframes |
|
Back to top |
|
|
philipraju Warnings : 1 New User
Joined: 16 Apr 2006 Posts: 29
|
|
|
|
Hi mahithegenius,
It will takes 9 bytes only...bcz of redefines does not allocates extra memorey...
Any other questions from EDS.....pls Recall all those questions |
|
Back to top |
|
|
|