The function ____ obtains a block of memory dynamically.

Category: QuestionsThe function ____ obtains a block of memory dynamically.
Editor">Editor Staff asked 11 months ago

The function ____ obtains a block of memory dynamically.
 
(a) calloc
 
(b) malloc
 
(c) both calloc & malloc
 
(d) free
 
I had been asked this question in unit test.
 
My query is from Storage Management topic in portion Input and Output in C of C
NCERT Solutions for Subject Computer science (C Programming) Select the correct answer from above options 
Interview Questions and Answers, Database Interview Questions and Answers for Freshers and Experience

1 Answers
Editor">Editor Staff answered 11 months ago

The correct choice is (c) both calloc & malloc
 
Easy explanation – None.