Question
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) {
a[i]=i;
a[9-i]=9-i;
}
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