Meaning of default init and value init?

后端 未结 0 957
轻奢々
轻奢々 2021-01-01 17:50

I am very confused by c++ ways of initializing variables. What is the difference if any, between these:

int i; // does this make i uninitialized?
int i{}; //          


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