Question: III. Solve the following Programs: 1. Write a C program to parse assembly code from text file to a dynamically allocated array of structures. Structure
III. Solve the following Programs: 1. Write a C program to parse assembly code from text file to a dynamically allocated array of structures. Structure is presented below a. Create a file code.txt as input Place file inside of your project folder and copy and paste following text to your file Kuwait, Fintas, Block 3, street 7, 33 Kuwait, Kuwait City, Block 3, street 3, 2 b. Parse instructions from file by following next rule:s Every line in file represent one address - Address have a Country, City, Block, Street and Number Addresses are divided by one semi-column ("") Other fields are divided by coma (",") c. Store each Address as one element in dynamically allocated array of Address structure, and display all elements in main function struct Address char country[20] char city[20]; char block [20]; char street [20]: char number [20] d; III. Solve the following Programs: 1. Write a C program to parse assembly code from text file to a dynamically allocated array of structures. Structure is presented below a. Create a file code.txt as input Place file inside of your project folder and copy and paste following text to your file Kuwait, Fintas, Block 3, street 7, 33 Kuwait, Kuwait City, Block 3, street 3, 2 b. Parse instructions from file by following next rule:s Every line in file represent one address - Address have a Country, City, Block, Street and Number Addresses are divided by one semi-column ("") Other fields are divided by coma (",") c. Store each Address as one element in dynamically allocated array of Address structure, and display all elements in main function struct Address char country[20] char city[20]; char block [20]; char street [20]: char number [20] d
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
