Compare C++ new, malloc, and Placement new
Company: Hudson River Trading
Role: Software Engineer
Category: Software Engineering Fundamentals
Difficulty: medium
Interview Round: Technical Screen
Overview: Compare a C++ new expression, malloc, and placement new by separating storage allocation from object construction. Cover alignment, constructors, exceptions, explicit destruction, matching deallocation, object lifetime, pools, arenas, locality, and RAII safety.