CrazyEngineers
  • array of structure

    deepikaanand

    deepikaanand

    @deepikaanand-PSMjLi
    Updated: Oct 16, 2024
    Views: 1.1K
    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
    0
    Replies
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Home Channels Search Login Register