News for hackers. Stuff that matters.
Re:Data Structures and Algorithms Problems by RandomOpinion on Wednesday April 05, 2017 @02:49PM (#14044527)
> If I were interviewing someone and they claimed to know C++, and then used "sizeof(A) / sizeof(A[0])" to get the size of an array, I'd question how much C++ they actually knew.

Or they've spent a lot of time in embedded systems development. Many of us write rather C-ish C++ because of the limitations of older compilers and the age of the code bases.

Re:Data Structures and Algorithms Problems by quinnftw on Wednesday April 05, 2017 @03:30PM (#14044823)
Genuine curiosity because I don't have a whole lot of experience with embedded systems: Why not just use C then?

Either way I would argue that using sizeof in that way is a sketchy practise.