adplus-dvertising
frame-decoration

Question

A function that is prototyped as double calculate(int num); may______

a.

receive an integer constant such as 5

b.

receive an integer variable

c.

either (a) or (b)

d.

neither (a) nor (b)

Answer: (c).either (a) or (b)

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. A function that is prototyped as double calculate(int num); may______

Similar Questions

Discover Related MCQs

Q. Passing a variable pointer as a constant _____

Q. Recursive Functions

Q. Any output manipulator function you create _____

Q. To pass an array by reference, you

Q. Which is a good reason for passing a variable's address to a function?

Q. Which function is most likely to have procedural cohesion?

Q. The function printDataMembers() is mot likely a(n) ________

Q. The data type listed at the beginning of a value-returning function's header indicates the type of data the function will _____

Q. A program will have one function prototype for each function defined in the programmer-defined section of the program. (Assume that the programmer-defined section is located below the main function.)

Q. Student senior(); is a(n)_________

Q. Programmer-defined functions can be

Q. The functions go in the _____ section of a class definition

Q. You invoke a function with a function

Q. Which is a good guideline for creating function names?

Q. A function that is prototype as int calculate(int num); may

Q. A function that is prototyped as double calculate(int num); may ______

Q. You can pass _____ to functions

Q. The weakest form of cohesion is

Q. If the description of function is "input the quantity, validate that the quantity is greater than 1, subtract 1 from the quantity, and print the quantity," the function is

Q. A function that changes an object's state belongs to the category of