GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Interview Questions  >  Concepts  >  Data Structures
Go To First  |  Previous Question  |  Next Question 
 Data Structures  |  Question 161 of 198    Print  
How do you overload Increment and decrement operators?

  
Total Answers and Comments: 4 Last Update: January 17, 2007     Asked by: savithavelu 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
January 03, 2007 05:45:44   #1  
       

RE: How do you overload Increment and decrement operat...
i think we can't overload increment and decrement operators. if possible give me a suggestion
 
Is this answer useful? Yes | No
January 03, 2007 12:08:08   #2  
savithavelu Member Since: December 2006   Contribution: 6    

RE: How do you overload Increment and decrement operat...

We can overload increment and decrement operators. Depending upon the function arguments we pass, it can be identified whether it is increment or decrement operators.


 
Is this answer useful? Yes | No
January 12, 2007 11:29:48   #3  
Ram        

RE: How do you overload Increment and decrement operat...
We can reload increment and decrement operators as we do the other operators. But incase of the preincrement or predecrement we take an argument in the operator definition, which identifies whether it is pre or post, other thing are same.
 
Is this answer useful? Yes | No
January 17, 2007 03:19:47   #4  
       

RE: How do you overload Increment and decrement operat...
we over load this operator this process is known as cascading
 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape