// Change the pointer of the array
void change(int **array, int length)
{
*array = malloc(length * sizeof(int));
if (*array == NULL)
return;
for (int i = 0 ; i < length ; i++)
(*array)[i] = 1;
}
int mark[5] = {19, 10, 8, 17, 9}
// make the value of the third element to -1
mark[2] = -1;
// make the value of the fifth element to 0
mark[4] = 0;
#include <stdio.h>
#define PI 3.142
int main(){
int a[5] ={12, 21, 34, 23, 13};
printf("Initial value of index 1: %d
", a[1]);
a[1] = 43;
printf("Final value of index 1: %d
", a[1]);
}