Q. What is the return type of malloc()?

  • (A) int *
  • (B) void *
  • (C) char *
  • (D) float *
πŸ’¬ Discuss
βœ… Correct Answer: (B) void *
Explanation: malloc() returns a void pointer to the allocated memory.
Explanation by: Mr. Dubey
malloc() returns a void pointer to the allocated memory.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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