Question: ( 1 ) Declare an integer array of size 5 and ini alize it with arbitrary values. ( 2 ) Write a func on called

(1) Declare an integer array of size 5 and inialize it with arbitrary values.
(2) Write a funcon called printArray that takes an integer pointer and the size of the array as
parameters and prints the elements of the array.
(3) Write a funcon called incrementArray that takes an integer pointer and the size of the array as
parameters and increments each element of the array by 1.
(4) In the main() funcon, call the printArray funcon to print the inial values of the array.
(5) Call the incrementArray funcon to increment the values of the array.
(6) Call the printArray funcon again to print the modified
values of the array.

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 Programming Questions!