#include <stdio.h>
int main() {
int *ptr;
ptr=(float*) malloc(5 * sizeof(float));
ptr[0]=1;
ptr[1]=3;
ptr[2]=5;
ptr[3]=7;
ptr[4]=9;
for(int i=0; i<5; i++) {
printf("%d\n",ptr[i]);
}
return 0;
}
To embed this program on your website, copy the following code and paste it into your website's HTML: