Which of the following is the general syntax of the function prototype to overload the pre-increment operator ++ as a member function?
A) className operator++() ;
B) className operator++(int) ;
C) friend className operator++() ;
D) friend className operator++(int) ;
Correct Answer:
Verified
Q17: Operator functions typically return void.
Q18: Every object of a class maintains a
Q19: The associativity of the operator = is
Q20: In C++, operator is a reserved word.
Q21: With the exception of the _ operator
Q23: When the post-increment operator is overloaded as
Q24: A(n) _ returns random numbers whose likelihoods
Q25: Using a class _ allows you to
Q26: Class templates are called _ types.
A) polymorphic
B)
Q27: Suppose cType is a class template, which
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents