Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In c programming, only need question 2 (VI) and (VIII) (1) Define structure with tag name bank book. The structure is to consist of three

In c programming, only need question 2 (VI) and (VIII) image text in transcribed
image text in transcribed
(1) Define structure with tag name bank book. The structure is to consist of three fields: a 20 element character array called firstName, a 20 element character array called lastName, a 10 element character array called ss_id, an unsigned short called bankld, and a double called balance (2) (i) Define a variable called myAccountof type struct bank book, (li)declare and initialize an array of 1000 elements called THE_BANK of type struct bank book; You should initialize the array so that all fields are assigned zero (ii) assign to the 5th element of the THE_BANK array the following information: John Smith, 21465, 990123411, 3201.23 (iv) Assume no padding takes place how many bytes is required to an identifier of type struct bank book (v) suppose that the array THE BANK is located at the address 7200 and we assign cptr THE_BANK +5 then determine cptr (vi) Of the 1000 elements in the array THE_BANK some of the elements do not refer to an active account. An array element can be determined to be an active account by looking at

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing Fundamentals, Design, and Implementation

Authors: David M. Kroenke, David J. Auer

14th edition

133876705, 9781292107639, 1292107634, 978-0133876703

More Books

Students also viewed these Databases questions