Question
a.
char function(double d, char c)
b.
int function(int d, char c)
c.
both (a) and (b)
d.
neither (a) nor (b)
Posted under Object Oriented Programming Using C++
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. A C++ program contains a function with the header int function(double d, char c). Which of the following function headers could be used within the same program?
Similar Questions
Discover Related MCQs
Q. A function that returns no values to the program that calls it is _____
View solution
Q. Which of the following statements is false?
View solution
Q. The generic type in a template function
View solution
Q. A function that is called automatically each time an object is destroyed is a
View solution
Q. Overloaded functions are required to
View solution
Q. You mark the beginning of a function's block of code with the _____
View solution
Q. Of the three ways to pass arguments to functions, only passing by _____ and passing by _____ allow the function to modify the argument in the calling program
View solution
Q. When you omit parameters from a function call, values can be provided by
View solution
Q. When an argument is passed by reference,
View solution
Q. The last statement in a function is often a(n) _____
View solution
Q. When the function int someFunction(char c) throw( ) is executed, _____
View solution
Q. If you assign a default value to any variable in a function prototype's parameter list, then _____
View solution
Q. Which of the following calls a function named displayName, passing it no actual arguments?
View solution
Q. Functions that returns information about an object's state can be classified as ________
View solution
Q. An auxiliary function _____
View solution
Q. Assume a program contains a void function named displayName, which requires no formal parameters. Which of the following is a correct function prototype for this function?
View solution
Q. The function whose prototype is Item getData(void); returns _____
View solution
Q. The name of a function ends with
View solution
Q. Function templates _____________
View solution
Q. The outline or the definition of a function is called its
View solution
Suggested Topics
Are you eager to expand your knowledge beyond Object Oriented Programming Using C++? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!