Why not to cast malloc in C whereas do cast in C++?

后端 未结 0 414
-上瘾入骨i
-上瘾入骨i 2020-12-08 18:32

This post says that one should cast malloc in C++, but should not in C. AFAIK they both are strictly typed. Why is there such difference between C and C++ conce

相关标签:
回答
  • 消灭零回复
提交回复
热议问题