πŸ“Š C Programming
Q. What does calloc() do differently than malloc()?
  • (A) Allocates memory of zero bytes
  • (B) Initializes allocated memory to zero
  • (C) Faster than malloc
  • (D) Returns a double pointer
πŸ’¬ Discuss
βœ… Correct Answer: (B) Initializes allocated memory to zero

Explanation: calloc() sets all allocated bytes to zero, unlike malloc().

Explanation by: Mr. Dubey
calloc() sets all allocated bytes to zero, unlike malloc().

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
57
Total Visits
πŸ“½οΈ
11 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
87%
Success Rate