Search code examples
not all malloc'ed memory is "heap" and each block is not contiguous in virtual memory?...


clinuxdynamic-memory-allocationvirtual-memory

Read More
Error while declaring ptr using calloc in global scope...


cscopedynamic-memory-allocationcallocglobal-scope

Read More
Visual Studio 2019 getting error C2440 with typedef data type...


cvisual-studiocompiler-errorsdynamic-memory-allocation

Read More
How should I dynamically allocate string pointers in C++?...


c++dynamic-memory-allocationradix-sort

Read More
How to initialize a generic base class in c++...


c++oopc++11dynamic-memory-allocation

Read More
If a C function is called twice will it create a variable declared in the function twice?...


cprintfdynamic-memory-allocationstdio

Read More
Value of array pointer is getting changed after fopen...


cdynamic-memory-allocationarray-pointer

Read More
In C++, what is the best way to dynamically allocate a single class?...


c++vectornew-operatordynamic-memory-allocation

Read More
Can we assign a value to pointer unsigned char array?...


c++arrayspointersdynamic-memory-allocationtetris

Read More
How a pointer be deallocated after it's initialized inside a function or an if-else statement?...


cif-statementpointersmemory-managementdynamic-memory-allocation

Read More
Errors when making a dynamic C array of structs...


cpointersmallocdynamic-memory-allocationrealloc

Read More
How does free() works in this case?...


cmemorymemory-managementdynamic-memory-allocationfree

Read More
Using realloc() to remove data from the beginning of an allocated segment?...


cmallocdynamic-memory-allocationrealloc

Read More
Failed to dynamically allocate memory based on user's string; realloc(): invalid next size...


cstructdynamic-memory-allocationrealloccallstack

Read More
Cannot assign the return value of ftell function to a char array size...


arrayscprintfdynamic-memory-allocationftell

Read More
Trying to dynamically allocate an array inside an element of a vector of structs...


c++arraysvectordynamic-memory-allocation

Read More
realloc() use-after-free address sanitizer issue with recursion...


crecursiondynamic-memory-allocationreallocaddress-sanitizer

Read More
How can I add a char on the begining of a string in C?...


cchardynamic-memory-allocationc-strings

Read More
C++ : How to safely deallocate a heap-allocated array of vectors?...


c++vectormemory-managementheap-memorydynamic-memory-allocation

Read More
Why does free() cause an error in my code when it's there, but everything runs well when it is n...


cmemory-managementmallocdynamic-memory-allocationrealloc

Read More
delete[] operator in C++ not working as it should...


c++dynamic-memory-allocationdelete-operator

Read More
Is it safe to call realloc() on the pointer you pass into function itself?...


cmemory-managementmallocdynamic-memory-allocationrealloc

Read More
Difference between malloc(sizeof(ptr)) and malloc(sizeof(ptr*))?...


cpointersdynamic-memory-allocation

Read More
Dynamically allocate an array of strings...


arrayscstringdynamic-memory-allocation

Read More
Free() after using malloc in linked list...


clinked-listdynamic-memory-allocationfree

Read More
C Allocating Memory in Loop: Error munmap_chunk(): invalid pointer...


cmemory-leaksdynamic-memory-allocationundefined-behavior

Read More
Copy n words in a single string using strcat...


cdynamic-memory-allocationstrcat

Read More
Dynamic memory allocation for node in linked list...


cmemory-leakslinked-listdynamic-memory-allocation

Read More
Memory Deallocation in Circular Singly Linked List...


clinked-listdynamic-memory-allocationfreecircular-list

Read More
malloc touching unallocated memory...


arrayscmemory-managementmallocdynamic-memory-allocation

Read More
BackNext