I'm not c++ programmer, so please correct me if I'm wrong, but I think that the reference example is not correct.
Shouldn't it be as bellow?
// reference example
int value = 0;
int& value1 = value;
value1 = 2;
// value should equal 2
Re:The Technical Interview Is Dead
by thrownaway2424 on Sunday June 23, 2013 @12:56PM
(#5928256)
Yes. And this subthread nicely proves the parent: At least half of people who claim to program in C++ can't.
If you have a variable and you want to pass-by-reference, making any changes to the original variable effect the originally allocated value.
You use a pointer for instance if you want to dereference a physical memory address as part of an array of allocated memory addresses.