About 68,200 results
Open links in new tab
  1. Dynamic Memory Allocation in C - GeeksforGeeks

    Apr 9, 2026 · The malloc (), calloc (), realloc () and free () functions are the primary tools for dynamic memory management in C, …

  2. malloc - cppreference.com

    malloc is thread-safe: it behaves as though only accessing the memory locations visible through its argument, and not any static …

  3. malloc (3) - Linux manual page - man7.org

    The malloc (), calloc (), realloc (), and reallocarray () functions return a pointer to the allocated memory, which is suitably aligned for …

  4. malloc | Microsoft Learn

    Feb 7, 2023 · malloc returns a void pointer to the allocated space, or NULL if there's insufficient memory available. To return a …

  5. C dynamic memory allocation - Wikipedia

    C dynamic memory allocation refers to performing manual memory management for dynamic memory allocation in the C …

  6. std::malloc - cppreference.com

    std::calloc, std::malloc, std::realloc, std::aligned_alloc(since C++17), std::free Calls to these functions that allocate or deallocate a …

  7. c - When and why to use malloc - Stack Overflow

    Size malloc allows you to allocate much larger memory spaces than the one allocated simply using student p; or int x[n];. The reason …

  8. C stdlib malloc () Function - W3Schools

    Definition and Usage The malloc() function allocates memory and returns a pointer to it. Unlike calloc() the memory is not initialized, …

  9. malloc () function - C library

    The C stdlib library malloc() function is used for dynamic memory allocation. It allocates or reserves a block of memory of specified …

  10. C Dynamic Memory Allocation Using malloc (), calloc (), free ...

    C calloc () The name "calloc" stands for contiguous allocation. The malloc() function allocates memory and leaves the memory …