Using a character to fill up what a character pointer points to C++

前端 未结 0 1917
醉酒成梦
醉酒成梦 2021-02-10 00:07

In the first method shown that accepts only a parameter length, is it better to initialize data_ with 0 or with nullptr?

Array::Array(size_t length)
: cur_size_(0         


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