Why is a const void pointer needed when formatting a pointer as a string?

后端 未结 0 980
感动是毒
感动是毒 2020-12-22 04:11

What is the purpose of the const keyword here? I have tried the same approach without const, and also without casting to a void pointer and both methods seem to work.

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