#include #include void main(void) { size_t taille = 500000; printf("Allocation de %zu int\n",taille); int* ptr = (int*) calloc(taille, sizeof(int)); if (ptr == NULL) { printf("Allocation avortee\n"); } else { printf("Allocation reussie a l'adresse : %p\n", ptr); printf("\n"); int cpt = 0; for (int i = 0; i < taille; i++) { if (ptr[i] == 0) { cpt++; } } printf("%d valeurs egales a 0 pour %zu attendu\n", cpt, taille); } }