MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/lvhvgz/simple_c_initialization_flowchart/gpd6ktm/?context=3
r/cpp • u/konanTheBarbar • Mar 01 '21
65 comments sorted by
View all comments
103
I prefer it as a table.
2 u/[deleted] Mar 02 '21 What about int(x);? https://godbolt.org/z/WxoKfM 2 u/__--_--___--_--__ Mar 02 '21 This is just a different way to parse out default initialization 2 u/[deleted] Mar 02 '21 Is better to be aware the compiler allows such syntax to avoid ugly surprises, the same goes for the comma operator in the table.
2
What about int(x);? https://godbolt.org/z/WxoKfM
int(x);
2 u/__--_--___--_--__ Mar 02 '21 This is just a different way to parse out default initialization 2 u/[deleted] Mar 02 '21 Is better to be aware the compiler allows such syntax to avoid ugly surprises, the same goes for the comma operator in the table.
This is just a different way to parse out default initialization
2 u/[deleted] Mar 02 '21 Is better to be aware the compiler allows such syntax to avoid ugly surprises, the same goes for the comma operator in the table.
Is better to be aware the compiler allows such syntax to avoid ugly surprises, the same goes for the comma operator in the table.
103
u/atimholt Mar 01 '21
I prefer it as a table.