Question: rite a C program that includes the following: 1. (3 points) A function that prints an integer array with the following prototype: void PrintIntegerArray (

rite a C program that includes the following:

1. (3 points) A function that prints an integer array with the following prototype:

void PrintIntegerArray ( int *a , int size);

2. (5 points) A function that multiplies the prime numbers in the array a by the value of c, with the following prototype:

void MultIntegerArrayByConst ( int *a , int size, int c);

3. (4 points) The main function that:

-Declares integer named c as well as an integer array named intArray that contains 20 elements.

-Reads c and intArray from the keyboard.

-Calls MultIntegerArrayByConst to multiply intArray by c.

-Calls PrintIntegerArray to print intArray.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!