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?


July 07, 2009 20:05:20 #4
 yzesong   Member Since: July 2009    Total Comments: 20 

RE: Register Relation
 
I agree with sahasranaman. When you look at assembly level, P++ take less instructions than P+1, so P++ is faster, I think P++ and ++P are the same.
     

 

Back To Question