Question: Write a function called to The Power4(), that takes as parameter an integer and returns its value to the power 4. Write a function,
Write a function called to The Power4(), that takes as parameter an integer and returns its value to the power 4. Write a function, called print(), that takes as parameters an array of integers and the size of the array, then prints on the screen the values stored in the array. Write a main function that (1) declares an array of 5 integers that contains (2, 5, 4, 3, 5), (2) uses the function to ThePower4() to replace each array element by its calculated value raised to the 4th power, and (3) uses the function print() to print the new array elements. Sample Run: the array new elements are: 625 256 81 2 625
Step by Step Solution
There are 3 Steps involved in it
Below is an example in C that includes the functions toThePower4 and print along with the ... View full answer
Get step-by-step solutions from verified subject matter experts
