Capgemini Interview Question

call by value & reference, dangling pointer?