Question: IN C PROGRAMMING: struct bank_book { char firstname[20]; char lastname[20]; char ss_id[10]; unsigned short bankId; double balance; } (this is the struct im using for

IN C PROGRAMMING:

struct bank_book {

char firstname[20];

char lastname[20];

char ss_id[10];

unsigned short bankId;

double balance;

} (this is the struct im using for this problem)

IN C PROGRAMMING: struct bank_book { char firstname[20]; char lastname[20]; char ss_id[10];unsigned short bankId; double balance; } (this is the struct im using

(2) Define a variable called myAccountof type struct bank book, 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

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!