26 Answered Questions

[SOLVED] Do I cast the result of malloc?

  • 2009-03-03 10:13:02
  • Patrick McDonald
  • 197133 View
  • 2223 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?

3 Answered Questions

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

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

25 Answered Questions

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

17 Answered Questions

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

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

1 Answered Questions

12 Answered Questions

[SOLVED] Difference between malloc and calloc?

  • 2009-10-08 15:04:33
  • user105033
  • 488375 View
  • 705 Score
  • 12 Answer
  • Tags:   c malloc calloc

8 Answered Questions

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

16 Answered Questions

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

  • 2010-01-07 17:43:14
  • jldupont
  • 52938 View
  • 112 Score
  • 16 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
  • 38691 View
  • 74 Score
  • 9 Answer
  • Tags:   c linux gcc malloc

4 Answered Questions

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

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

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
  • 7519 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
  • 67055 View
  • 55 Score
  • 8 Answer
  • Tags:   c memory free malloc

7 Answered Questions

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?

9 Answered Questions

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

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

10 Answered Questions

3 Answered Questions

[SOLVED] How is malloc() implemented internally?

4 Answered Questions

[SOLVED] Overriding 'malloc' using the LD_PRELOAD mechanism

7 Answered Questions

9 Answered Questions

[SOLVED] what does malloc(0) return?

5 Answered Questions

[SOLVED] sprintf() with automatic memory allocation?

  • 2010-09-22 23:35:56
  • the-shamen
  • 31895 View
  • 34 Score
  • 5 Answer
  • Tags:   c malloc printf