Q. Which of the following functions is used to dynamically allocate memory in C?

  • (A) malloc()
  • (B) alloc()
  • (C) calloc()
  • (D) Both malloc() and calloc()
πŸ’¬ Discuss
βœ… Correct Answer: (D) Both malloc() and calloc()
Explanation: 'malloc()' and 'calloc()' both are used to allocate dynamic memory in C.
Explanation by: Mr. Dubey
'malloc()' and 'calloc()' both are used to allocate dynamic memory in C.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
91
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
91%
Success Rate