Question
a.
protects the contents pointed to by the pointer from change
b.
eliminates the need to name the pointer in the function
c.
eliminates the need to give the pointer a type in the function
d.
causes a copy of the pointer to be produced in the function
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. Passing a variable pointer as a constant _____
Similar Questions
Discover Related MCQs
Q. Recursive Functions
View solution
Q. Any output manipulator function you create _____
View solution
Q. To pass an array by reference, you
View solution
Q. Which is a good reason for passing a variable's address to a function?
View solution
Q. Which function is most likely to have procedural cohesion?
View solution
Q. The function printDataMembers() is mot likely a(n) ________
View solution
Q. The data type listed at the beginning of a value-returning function's header indicates the type of data the function will _____
View solution
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.)
View solution
Q. Student senior(); is a(n)_________
View solution
Q. Programmer-defined functions can be
View solution
Q. The functions go in the _____ section of a class definition
View solution
Q. You invoke a function with a function
View solution
Q. Which is a good guideline for creating function names?
View solution
Q. A function that is prototype as int calculate(int num); may
View solution
Q. A function that is prototyped as double calculate(int num); may ______
View solution
Q. You can pass _____ to functions
View solution
Q. The weakest form of cohesion is
View solution
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
View solution
Q. A function that changes an object's state belongs to the category of
View solution
Q. When the function char someFunction(int x) is executed,
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!