Price your future right. 60% off with code BLACKSCHOLES at USD checkout. Offer ends in --d --h --m --s-- days -- hours -- minutes -- seconds.
Price your future right. 60% off with code BLACKSCHOLES at USD checkout. Offer ends in 13d 04h 17m 56s13 days 4 hours 17 minutes 56 seconds.
Topic
C++ questions come up in quant developer and low-latency engineering loops: language semantics, memory, performance and the occasional systems design question.
40 free, 91 with Premium.
C++ is the main language for latency-sensitive trading systems. Interviews check that you understand what the code does on the machine: object lifetimes, copies and moves, memory layout and the cost of each abstraction, often by asking you to predict output or fix a subtle bug.
Tie every resource to an object's lifetime. unique_ptr expresses single ownership; shared_ptr adds a reference count and its cost.
std::move is only a cast to an rvalue; the move constructor does the work. Know when the compiler elides copies and when it cannot.
Contiguous data beats pointer chasing. Field order, padding, cache lines and false sharing often matter more than the algorithm.
A virtual call goes through a vtable pointer and blocks inlining. Templates and CRTP move that choice to compile time.
Problems marked with a lock are part of Premium.