int *p = malloc(40);int max =0 ;
for (int i =0 ; i < 10; i++) {
*(p+i) = arc4random()%21+20;
printf("%d ",*(p+i));
}
printf("\n");
for (int i= 0; i < 10; i++) {
if (max < *(p+i)) {
max = *(p+ i);
}
}
printf("%d\n",max);
free(p);
p =NULL;