Capgemini interview question

call by value & reference, dangling pointer?