array of structure
consider an array 'book[500]'
where each element is a structure consisting
acc_no-integer
title-string of 50 characters
authors-string of 20 character
date_of_publishing-(dd,yy,mm)data type
price-real number
assume base address=b0
also assume int requires 4 bytes,real number storage require 8 bytes
calculate address of the following:
(1)book[10].title
(2)book[15].authors
(3)book[27].date of publishing
(4)book[42].Price
where each element is a structure consisting
acc_no-integer
title-string of 50 characters
authors-string of 20 character
date_of_publishing-(dd,yy,mm)data type
price-real number
assume base address=b0
also assume int requires 4 bytes,real number storage require 8 bytes
calculate address of the following:
(1)book[10].title
(2)book[15].authors
(3)book[27].date of publishing
(4)book[42].Price
0