Which of the following is the general syntax of the function prototype to overload the pre-increment operator as a nonmember function?

A. className operator++();
B. friend className operator++();
C. className operator++(int);
D. friend className operator++(className&);

Answer: D

Computer Science & Information Technology

You might also like to view...

In the pseudocode of the textbook, what does the following statement indicate?

Write itemsOrdered "widgets" a. itemsOrdered is a file on disk and the program will write the string "widgets" to it. b. The string "widgets" will be written to the file associated with itemsOrdered. c. The string "itemsOrdered" will be written to the file named widgets. d. The file named itemsOrdered will be renamed widgets.

Computer Science & Information Technology

What names are displayed in the list box by the following program segment?

``` Dim newYork As String = "Manhatten,Bronx,Brooklyn,Queens,Staten Island" Dim boroughs() As String = newYork.Split(","c) lstBox.Items.Add(boroughs(0)) lstBox.Items.Add(boroughs.Min) ``` (A) Brooklyn and Queens (B) Manhatten and Staten Island (C) Bronx and Manhatten (D) Manhatten and Bronx

Computer Science & Information Technology