C Programming MCQ

1:

calloc(m, n); is equivalent to

A.

malloc (m*n, 0);

B.

memset(0, m*n);

C.

ptr = malloc (m*n); memset (p, 0, m*n);

D.

ptr = malloc(m*n); strcpy(p, u);

 

Answer : C

Explanation :

Write your comments here:


Report Error
 

Option: A

Explanation : Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here.