Page 1 of 1

please use C language only Using Microsoft Visual, write a function and the missing line(s) in the main program. Name th

Posted: Tue Jul 12, 2022 8:22 am
by answerhappygod
please use C language only
Using Microsoft Visual, write afunction and the missing line(s) in the main program. Name thefunction FillArray. The function should work with arrays of typeintegers of any given size. The purpose of this function is to fillthe second array with the same values times 10 of the originalarray, but only for negative numbers.when it’s positive itwould be doubled the original value.
Attach the coding andthe output screen
#include<stdio.h>
/* Complete the FillArray functionhere*/
{
/* Complete FillArraybody here */
} /* End of FillArray Function*/
int main( )
{
/* Declare array1 and array2 here */
int size =10 ;
/*write the missing line here */
-----------------------------------------------------------------
return 0;
}
Hint(ex): array1[10] ={40, 13, -5, 22, 10, 80, -2, 50, 9, -7 }
Output: array2[10] = {80, 26, -50, 44, 20, 160, -20, 100, 18, -70}