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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started