C++ Dangling Reference Analysis - Quant Trader Interview Question
Difficulty: Hard
Category: Code Analysis
Practice quant interview questions from top firms including Jane Street, Citadel, Two Sigma, DE Shaw, and other leading quantitative finance companies.
Topics: cpp, dangling-reference, undefined-behavior, memory-management
Problem Description
Consider the following C++ code snippet:
What is the most likely outcome when the line int y = ref + 5; is executed?
Practice this hard trader interview question on MyntBit - the all-in-one quant learning platform with 200+ quant interview questions for Jane Street, Citadel, Two Sigma, and other top quantitative finance firms.