What are the different type of calloc() function?

What are the different type of calloc() function?

Some main calloc() function with their description are given below:

      Function               Description     
void *calloc(size_t num, The ANSI C standard array
size_t size );           memory allocation  
                         function.    
void _ based(void)       Using this you can write 
*_bcalloc( _segment seg, the segment that the  
size_t num, size_t size );data will be allocated 
                          from.
void _ far *_fcalloc     Allocates a block of 
(size_t num,size_t size);memory outside the
                         default data segment,
                         return far pointer.We  
                         call this function when
                         big mem model is used.  
void_near*_ncalloc       Allocates a block of 
(size_t num,size_t size);memory inside the 
                        default data segment,
                        return near pointer. 
                        This function is used 
                        when small/medium memory 
                        model specified.        


By:Vivek Kr. Agarwal
Date:2007-01-09 00:00:00

Post Your Answers


User Email:

User Name:
Answers:

Related C Subjective Links

C Subjective interview questions and answers for experienced and fresher