#include <stdio.h>
#include <stdlib.h>
int main() {
int *ptr;
ptr = (int *) calloc(5, sizeof(int));
if (ptr == NULL) {
printf("Memory not allocated!\n");
return 1;
}
printf("Default values (should be 0):\n");
for (int i = 0; i < 5; i++)
printf("%d ", ptr[i]);
free(ptr);
return 0;
}