Saturday 21 September 2013

Difference between Malloc and Calloc function in ‘C’

Difference between Malloc and Calloc function in ‘C’?

Malloc takes single parameter to specify the memory space to be allocated size of data type.

Calloc takes two parameters, one to specify the number of blocks and the other to specify block size.

No comments:

Post a Comment