29 Answered Questions

[SOLVED] Do I cast the result of malloc?

  • 2009-03-03 10:13:02
  • Patrick McDonald
  • 238335 View
  • 2426 Score
  • 29 Answer
  • Tags:   c malloc casting

19 Answered Questions

[SOLVED] In what cases do I use malloc and/or new?

13 Answered Questions

[SOLVED] How do malloc() and free() work?

5 Answered Questions

1 Answered Questions

3 Answered Questions

[SOLVED] Why malloc+memset is slower than calloc?

  • 2010-04-22 05:40:25
  • kingkai
  • 50864 View
  • 257 Score
  • 3 Answer
  • Tags:   c malloc

17 Answered Questions

[SOLVED] What REALLY happens when you don't free after malloc?

  • 2009-03-17 15:29:09
  • Scott
  • 115968 View
  • 540 Score
  • 17 Answer
  • Tags:   c malloc free

22 Answered Questions

[SOLVED] Why is the use of alloca() not considered good practice?

13 Answered Questions

[SOLVED] Difference between malloc and calloc?

  • 2009-10-08 15:04:33
  • user105033
  • 530439 View
  • 782 Score
  • 13 Answer
  • Tags:   c malloc calloc

9 Answered Questions

[SOLVED] C Programming: malloc() inside another function

3 Answered Questions

[SOLVED] Why is it safer to use sizeof(*pointer) in malloc

  • 2013-06-23 07:42:30
  • Yu Hao
  • 28099 View
  • 41 Score
  • 3 Answer
  • Tags:   c malloc

17 Answered Questions

[SOLVED] What's the point of malloc(0)?

  • 2010-01-07 17:43:14
  • jldupont
  • 64464 View
  • 121 Score
  • 17 Answer
  • Tags:   c malloc

13 Answered Questions

[SOLVED] How can I get the size of an array from a pointer in C?

9 Answered Questions

[SOLVED] Why does malloc initialize the values to 0 in gcc?

  • 2011-11-06 19:05:59
  • SHH
  • 42042 View
  • 77 Score
  • 9 Answer
  • Tags:   c linux gcc malloc

8 Answered Questions

8 Answered Questions

8 Answered Questions

[SOLVED] How do free and malloc work in C?

  • 2009-12-24 06:49:06
  • user238082
  • 72107 View
  • 59 Score
  • 8 Answer
  • Tags:   c memory free malloc

3 Answered Questions

[SOLVED] Why is malloc not "using up" the memory on my computer?

3 Answered Questions

[SOLVED] Why does C++ require a cast for malloc() but C doesn't?

  • 2010-08-13 14:22:06
  • bodacydo
  • 8853 View
  • 43 Score
  • 3 Answer
  • Tags:   c++ c malloc

23 Answered Questions

[SOLVED] Setting variable to NULL after free

9 Answered Questions

[SOLVED] Difference between array type and array allocated with malloc

12 Answered Questions

[SOLVED] Is malloc thread-safe?

5 Answered Questions

[SOLVED] Overriding 'malloc' using the LD_PRELOAD mechanism

11 Answered Questions

5 Answered Questions

[SOLVED] How to use a C++ string in a structure when malloc()-ing the same structure?

3 Answered Questions

[SOLVED] How is malloc() implemented internally?

11 Answered Questions

9 Answered Questions

[SOLVED] Create a wrapper function for malloc and free in C

8 Answered Questions

7 Answered Questions