Possible Duplicate:
When should I use malloc in C and when don't I?
Hi, I'm new to the C language and found the malloc function. When should I use it? In my job, some say you have to use malloc in this case but other say you don't need to use it in this case. So my question is: When should I use malloc ? It may be a stupid question for you, but for a programmer who is new to C, it's confusing!