Try to convert the following C code to Assembly
#include <stdio.h> int main(void)
{
int array[] = {10, 60, 20, 33, 72, 86, 45, 65, 72, 18};
int sample = 50;
int ArraySize = sizeof(array) / sizeof(sample);
int index = 0;
int sum = 0;
while ( index < ArraySize )
{
if( array[index] > sample )
{
sum += array[index];
}
}
index++;
printf("Sum = %d\n", sum);
}
Try to convert the following C code to Assembly #include int main(void) { int array[] = {10, 60, 20, 33, 72, 8
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Try to convert the following C code to Assembly #include int main(void) { int array[] = {10, 60, 20, 33, 72, 8
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!