Please declare and initialize an array of five integers and store the values 2, 7, 4, 9, -5 in the array (in this order). You should name your array "arr" and not modify any of the code to print out the array’s contents. Be sure to declare any additional variables needed.
Compile and run the code below in your own C environment.
#include <stdio.h>
int main(void) {
int i;
/* Please add your code here.
* Be sure to declare your integer array with the name arr, and fill it with
* the values 2, 7, 4, 9, and -5.
*/
/* Do not change code below this line */
for (i = 0; i < 5; i++){
printf("%d ", arr[i]);
}
return(0);
}
When your program performs correctly you’ll be given a keyword to enter in Canvas.