
252 Functions in C++
SUMMARY
(1) Like “C” language, the programs written
in “C++” language highly depend on func-
tions. The “C++” program is nothing but
a combination of one or more functions.
(2) A function prototype declaration consists
of function’s return type, name, and argu-
ments list. When the programmer defines
that function, the definition must be the
same as its prototype declaration.
(3) In C++ it is possible to pass arguments by
value or by reference. C++ reference type
is declared with & operator and it is nearly
identical but not exactly the same as point-
er types. They declare aliases for objects
variables and allow the prog ...