Why is extern required for const int but not for const char*

前端 未结 0 1190
梦毁少年i
梦毁少年i 2021-01-20 23:49

I\'m confused about why I need extern or not for int vs char*. I have the following test program:

// extern.cpp
extern cons         


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