1. Home
  2. Computing & Technology
  3. C / C++ / C#

Definition of Pass By Value

By , About.com Guide

Definition: In C and C++, parameters to a function are passed by value. This makes a copy of the variable and can be quite slow and inefficient if the variable is large like an array.

C++ also allows Pass by Reference where the address of the variable is passed in. As C lacks references, it is necessary to pass in a pointer to a variable if the function is to change the variable.

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
Explore C / C++ / C#
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. C / C++ / C#
  4. Glossary
  5. Pass By Value - Definition

©2009 About.com, a part of The New York Times Company.

All rights reserved.