Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
7 views1 page

345 Notes 4

notes

Uploaded by

Hanarene
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
7 views1 page

345 Notes 4

notes

Uploaded by

Hanarene
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 1
@© : Binds a reference to an object. hargecezeatey —» C & A] CON born axess ie il; wate) 8 Chanog +nenalve 4 Reference initialization is used implicitly when a value is passed by reference or a reference is returned from a function. 7. Reference Initialization Referencewariablesimustiberinitializediwhemitheyareidectared. This kind of initialization binds the reference to an existing variable. Example: cop copy code #include int main) ¢ int a = 42; int& ref = std::cout << "ref: " << ref << std::endl; Output: ref ref = 160; std::cout << "a: "

You might also like