I'm trying to create an array of ints, of a specified size "size." Each member of the array should be filled with 32 0s (since that's the maximum an unsigned int can take). How should I go about this? Right now I have:
unsigned int *new_array = (unsigned int*) malloc (sizeof(unsigned int) * size);
for (j = 0; j < size; j++) {
new_array[j] = 0;
}
Yet when I print new_array[0], I get 0, not 00000000000000000000000000000000. Would bitwise operations help here?