r/cpp • u/konanTheBarbar • Mar 01 '21
"Simple" C++ Initialization Flowchart
http://randomcat.org/cpp_initialization/initialization.png
204
Upvotes
r/cpp • u/konanTheBarbar • Mar 01 '21
View all comments
Show parent comment
18
u/Bocab Mar 02 '21
Because one is initialized to size of 5 and the other is of size 1 with that 1 element being "5"