#include \"stdlib.h\" #include \"stdio.h\" #include \"string.h\" int main(int argc, char* argv[]) { int *test = malloc(15 * sizeof(int)); for(int i = 0;i <
When you request for a memory from heap, heap will just allocate any block of memory available to it. This block of memory may have some data depending upon a previous write.