answersLogoWhite

0


Best Answer

declaration of functions show takes one argument of double as

call by reference

exmp:

void show(double &);

double x=10;

show(x);

void show(double & z)

{

z=z+10;

}

User Avatar

Wiki User

10y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Why would a function prototype contain a parameter type declaration such as double and?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What is prototyping in c plus plus?

A prototype in C++, as well as in C, is a declaration of a function and its parameters, including the types of the function and parameters. It does not actually create (define) the code for the function - it only identifies (declares) it to the compiler. It is used to enforce type checking for functions and parameters, and it is used to declare the function for use in other code prior to the function actually being defined, such as in a different compilation unit or library. Headers, for instance, contain mostly prototypes.


Is it possible to have two separate system calls with the same name in unix?

Yes, this is possible, though not recommended. A call to any library routine simply requires that one of the linked libraries contain that call. Problems may occur if more than one linked library containing an object module of the same name is used. This might inadvertently occur if one were to accidentally instruct 'ld' to link an old and new version of the same library, though 'cc' and/or 'gcc' and/or 'ld' should complain if the prototype declarations in the header files differ from the object modules themselves or the source code call differs from the prototype declaration. [JMH]


What is the major function of granular and agranular?

Granular leukocytes have multilobed nuclei that function against non specific invading agents in the body. Agranular leukocytes contain a single neuleus not sure about their function...


What is the only function all C plus plus programs must contain?

Every C plus plus program that is a main program must have the function 'main'.


What are the disadvantages of function in C?

In comparison to Strawberry Cheesecake, the main disadvantage of a function in C is that you can't eat it. In comparison to a mature Brandy, the main disadvantage of a function in C is that you can neither smell nor drink it. In comparison to functions in some, but not many, other programming languages, one limitation of functions in C is that they may not be nested: In C, a function definition cannot contain another function definition. In comparison to some modern interpreted language, e.g. Python, one limitation of functions in C is that a function cannot generate another function.

Related questions

Does the confidence interval always contain the true population parameter?

No, the confidence interval (CI) doesn't always contain the true population parameter. A 95% CI means that there is a 95% probability that the population parameter falls within the specified CI.


What is prototyping in c plus plus?

A prototype in C++, as well as in C, is a declaration of a function and its parameters, including the types of the function and parameters. It does not actually create (define) the code for the function - it only identifies (declares) it to the compiler. It is used to enforce type checking for functions and parameters, and it is used to declare the function for use in other code prior to the function actually being defined, such as in a different compilation unit or library. Headers, for instance, contain mostly prototypes.


What are some words that contain the root 'prot'?

protestant protest prototype protagonist


What is Confidence Intervals of Degree of Confidence?

, the desired probabilistic level at which the obtained interval will contain the population parameter.


How many are atoms are in the IPK in France?

If you think to the International Prototype of Kilogram this cube contain 1,078361.10e+25 atoms of iron.


What is the blank IF function is one in which the action to be taken for the true or falso case that includes another function?

An IF Function can contain other functions as part of its condition, its True or it False parts. It can also contain another IF. When a function is inside another function, it is known as a Nested Function.


What does the lysosome contain to carry out its function?

they digest it


Is the function of cytoskeleton contain DNA?

No cytoskeleton is made up of proteins.It does not contain DNA.


How is a mesophyll cell adapted to its function?

They contain chloroplasts.


Equations that contain rational expressions?

a rational function.


What are the function of header files?

They declare library functions They contain macro definitions They contain type definitions


11 letter words?

Abandonment, declaration and legislative are words. The words contain eleven letters.