3 ms·
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 e
by dnc 13y ago
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
- thrownaway2424 13y agoYes. And this subthread nicely proves the parent: At least half of people who claim to program in C++ can't.
- Tyr42 13y agoThat is more correct, yes.