Logo 
Search:

C++ Programming FAQ

Submit Interview FAQ
Home » Interview FAQ » C++ ProgrammingRSS Feeds

Which overloads a unary minus operator and returns no values - Select option

  Shared By: Adalwolfa Fischer    Date: Mar 21    Category: C++ Programming    Views: 1151

Answer:

Options

a) sample :: oper-() { };
b) void sample :: operator-() { }
c) void sample :: operator-() { };
d) sample :: operator-() { }

Answer : b) void sample : : operator-() { }

Share: 
 



Your Comment
  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].


Tagged: