Convert Following Program Equivalent C Program Instead Loop Uses Loop Int Int 10 Int 0 Q34751404


a. Convert the following program to an equivalent C program thatinstead of for loop uses a while loop.

int i;

int a[10];

for (int i=0; i<=5, i=i+1) {




b. Convert the C program you wrote in (a) to an equivalentassembly program. Make sure that you show the symbol table (assumememory is allocated beginning address 5000) and that the equivalentassembly program is commented.

Expert Answer

As per chegg policy solving first part. Please post next partseparatly

Below is your code. Uncomment the lines to