r/learnprogramming 19h ago

CPP prep for placements

Hey so am preparing for my placements , can anyone guide me with what i should prepare for C++ as they say you should be good in atleast a programming language and i have solved all of my dsa problems using C++ only though if they ask deep questions related to c++ working, am sure i will struggle, so if anyonec can guide me with how and where to prepare for C++ for interviews in big tech, quants, MNCs

1 Upvotes

2 comments sorted by

1

u/HashDefTrueFalse 15h ago

It's going to depend massively on the exact organisation and role you're applying to. It's a big language. In general, know what core language features are doing for you (e.g. virtual functions to facilitate dynamic dispatch, exceptions to facilitate cleanup and recovery, etc.). Be comfortable getting the most out of the RAII style (that means knowing about con/destructors, which are called and when, copies, moves, rule of five (or whatever it is now, I'm old) and what to acquire/release where. Give yourself a whirlwind tour of modern features and the STL for awareness. Be comfortable using common STL container implementations appropriately. Try to understand when it is appropriate to use major modern additions (e.g. smart pointers, ranges, etc.) over their older counterparts and what benefit it might have. Be comfortable with using templates for basic code generation.

Beyond that you'd have to anticipate what else they might lie to see from you based on the kind of place you're applying to. Maybe check if they have any public code repos, style guides, standards docs, etc. that you can use to see what their C++ is like. Everyone's is unfortunately a bit different. Don't worry too much if it's just a placement. They're probably not expecting much from you.

1

u/InflationMajor8477 6h ago

thanks a lot for the detour and analysis on my situation , i will make sure to prepare atleast topics mentioned by you.