Malloc is a function used to allocate some space in the memory "allocate this 
in the run time of the program" but you must assign this to a pointer to use 
this and to free it
like"  int*x=(int*)malloc(sizeof(int));
the pointer x will be used to point to this and(int*) this will force the space 
to store integer
and (sizeof(int)) this means that the number of bytes you want to allocate
and thanks


Eng A.Mahmoud
 

--- On Mon, 5/4/09, abcpqr70 <[email protected]> wrote:

From: abcpqr70 <[email protected]>
Subject: [c-prog] malloc
To: [email protected]
Date: Monday, May 4, 2009, 10:37 PM











    
            
            


      
      [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



regards




 

      

    
    
        
         
        
        








        


        
        


      

[Non-text portions of this message have been removed]

Reply via email to