[go: up one dir, main page]

0% found this document useful (0 votes)
38 views9 pages

Reference

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

Reference

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

CSE 109

Computer Programming
References
Prepared by
Madhusudan Basak
Assistant Professor
CSE, BUET

Modified by
Shashata Sawmya
Lecturer
CSE, BUET
Reference
• Implicit pointer
• Acts like another name for a variable
• No need to apply *, &
• Address automatically passed
• Can not change what a reference is pointing to
Pointer

See reference_1_normal_pointer.cpp
Reference

See reference_2.cpp
Reference

See reference_3.cpp
Reference

See reference_4.cpp
Object Reference as Parameter

See reference_5.cpp
References
• Teach Yourself C++ by Herbert Schildt (Third Edition)
– Chapter 4 (4.4-4.7)
Thank You ☺

You might also like