Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

C++ Language/Indirection/ReferenceVariables

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

A reference (int& riVar = iVar;) must always be initialized to some kind of existing storage, and the location of that storage cannot be changed. However, the value stored at that location can be changed, so subsequently doing riVar = 99; will cause iVar to now contain 99. Additional information about reference variables (includes interactive examples)