#include <stdio.h>
#include<stdlib.h>
int main() {
int *ptr;
ptr=(int*) calloc(5,sizeof(int));
printf("enter numbers(5) : ");
for(int i=0;i<5;i++) {
scanf("%d",&ptr[i]);
}
//print
for(int i=0; i<8 ;i++){
printf("number %d is %d",i,ptr[i]);
}
return 0;
}
To embed this program on your website, copy the following code and paste it into your website's HTML: