Default initialisation of a struct with an array on the stack

后端 未结 0 1477
你的背包
你的背包 2020-12-13 21:08

I have the following code in c++:

struct ArrTest {
    int arr[512];
};

int main() {
   ArrTest a;
   ArrTest b{};
   auto c = new ArrTest;
   auto d = new A         


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