1. Computing
Send to a Friend via Email

Definition of Reference

By

Definition: In C++, a reference is a restricted type of pointer. It can only be assigned once and can never have a NULL value.

References are most useful when used to indicate that a parameter to a function is being Passed by Reference where the address of the variable is passed in. Without a Reference, Pass By Value is used instead.

Glossary:

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Examples:
Passing a large array by value into a function is slow and can possibly exhaust the stack possibly causing a crash. Pass by Reference should be used instead.
Related Video
Create Bullet, Number, and Definition Lists in HTML
Install a PCI Card

©2014 About.com. All rights reserved.