You are not logged in.

#1 2015-05-25 08:49:02

hasnain
Administrator
From: Chichawatni
Registered: 2014-10-13
Posts: 8,355
Website

C Language:

Question:
What is the main difference between calloc() and malloc()?

Option A):
calloc() takes a single argument while malloc() needs two arguments
Option B):
malloc() takes a single argument while calloc() needs two arguments
Option C):
malloc() initializes the allocated memory to ZERO
Option D):
calloc() initializes the allocated memory to NULL

Correct Answer is Option B):
malloc() takes a single argument while calloc() needs two arguments


Failure is the first step towards seccess.

2015-05-25 08:49:02

Advertisement
Ads By Google

Re: C Language:



Board footer