@[email protected] to Programmer [email protected]English • 8 months agoI can see the reference!feddit.nlimagemessage-square8fedilinkarrow-up1253arrow-down116file-text
arrow-up1237arrow-down1imageI can see the reference!feddit.nl@[email protected] to Programmer [email protected]English • 8 months agomessage-square8fedilinkfile-text
minus-square@TheEntitylink6•8 months agoAn int& reference is just as much of a variable as int* const would be (a const pointer to a non-const int). “Variable” might be a misnomer here, but it takes just as much memory as any other pointer.
An
int&
reference is just as much of a variable asint* const
would be (a const pointer to a non-const int). “Variable” might be a misnomer here, but it takes just as much memory as any other pointer.