Question: Only in C programming, (1) Define structure with tag name bank book. The structure is to consist of three fields: a 20 element character array
(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
Get step-by-step solutions from verified subject matter experts
