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  >  Programming  >  C++

 Print  |  
Question:  Register Relation

Answer: Why p++ is faster than p+1?


May 05, 2009 06:39:47 #1
 kumarabhijit   Member Since: May 2009    Total Comments: 1 

RE: Register Relation
 
I don't think  p+1 is faster than p++.
Internally P++ will be implemented as P+1 only.
Although the ++P is faster than P++ as it avoids the temporary variable creation.
     

 

Back To Question