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