Q. Which function is used to allocate memory dynamically in C?

  • (A) alloc()
  • (B) malloc()
  • (C) memalloc()
  • (D) new()
πŸ’¬ Discuss
βœ… Correct Answer: (B) malloc()
Explanation: malloc() is used to allocate memory at runtime.
Explanation by: Mr. Dubey
malloc() is used to allocate memory at runtime.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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