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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

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

Post 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}
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply