26 Answered Questions

[SOLVED] Do I cast the result of malloc?

  • 2009-03-03 10:13:02
  • Patrick McDonald
  • 204989 View
  • 2270 Score
  • 26 Answer
  • Tags:   c malloc casting

4 Answered Questions

19 Answered Questions

[SOLVED] In what cases do I use malloc vs new?

13 Answered Questions

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

1 Answered Questions

3 Answered Questions

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

  • 2010-04-22 05:40:25
  • kingkai
  • 45975 View
  • 243 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
  • 101153 View
  • 494 Score
  • 17 Answer
  • Tags:   c malloc free

25 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
  • 494646 View
  • 718 Score
  • 13 Answer
  • Tags:   c malloc calloc

8 Answered Questions

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

4 Answered Questions

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

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

17 Answered Questions

[SOLVED] what's the point in malloc(0)?

  • 2010-01-07 17:43:14
  • jldupont
  • 54824 View
  • 114 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
  • 39227 View
  • 74 Score
  • 9 Answer
  • Tags:   c linux gcc malloc

8 Answered Questions

8 Answered Questions

3 Answered Questions

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

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

8 Answered Questions

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

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

9 Answered Questions

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

3 Answered Questions

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

23 Answered Questions

[SOLVED] Setting variable to NULL after free

11 Answered Questions

[SOLVED] Is malloc thread-safe?

5 Answered Questions

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

9 Answered Questions

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

11 Answered Questions

3 Answered Questions

[SOLVED] How is malloc() implemented internally?

5 Answered Questions

[SOLVED] Overriding 'malloc' using the LD_PRELOAD mechanism

8 Answered Questions

[SOLVED] Why do I get a C malloc assertion failure?

7 Answered Questions

8 Answered Questions

[SOLVED] newbie questions about malloc and sizeof

  • 2009-10-07 19:00:00
  • John
  • 6195 View
  • 8 Score
  • 8 Answer
  • Tags:   c malloc sizeof