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

Replies

You are reading an archived discussion.

Related Posts

plzzz help me to select the sum latest topics for seminar and project.
is there decoder based FPGA available.????????????????
Need some suggestions regarding extension of features of a website Guys I have developed a website that will help all the students and job seekers from any part of India...
why java programming is a object oriented?
A capacitor is in series with a 5V ac source. now during the +ve half cycle, the capacitor is charged upto max 5V. then the ac source is replaced with...