r/cpp • • May 03 '26

The Most Confusing C++ Behavior

https://codestyleandtaste.com/most-confusing-C++-behavior.html
38 Upvotes

51 comments sorted by

View all comments

Show parent comment

2

u/levodelellis May 04 '26

What threw me off was structs were being initialized but not the ints next to them. I also had some code use {} in part of the function/codebase and not in the other, so vars were sometimes not initialized and added more to my confusion. But that was years ago, before I ever had a blog