At 5/5/2009 01:37 AM, you wrote:
>[mod-- That isn't a C or C++ statement. At best it's an expression.
>What does your reference manual say malloc does? --mod PN]
>
>hi,
>     malloc(64)
>
>     what will this statement do?
>
>     allocate a memory space of 64bytes??
>
>     please reply

Assuming your compiler does not flag this, it will likely give you a 
huge headache.

Sure, you are allocating 64 bytes of memory, but you aren't assigning 
a pointer to point to it. So you can never free it -- or even use it 
for that matter.

What is your point?

~Rick 

Reply via email to