Where can you not declare a variable in a C++ program?

a) Within the parameter list of a function definition
b) Within the block of a void function.
c) Within the argument list of a function call
d) Within a block nested within another block
e) Within the block of a value returning function.


c) Within the argument list of a function call

All except c) allow variable declarations. a) Variables defined in a parameter list would be parameters for the function, b) d) and e) would define local variables.

Computer Science & Information Technology

You might also like to view...

A key to making adjustments is to sometimes walk the fine line between going far enough to make the adjustment the best it can be and going too far.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Any new scene you add has the name Scene, followed by a ____.

A. number that is one higher than the previous scene B. random number C. number that is two higher than the previous scene to allow for editing D. number based on the creation date

Computer Science & Information Technology

The ________ function is used to calculate the average of cells specified by a given set of conditions or criteria

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Integer values in an enumeration must be in sequence.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology