Why preincrement operator is faster than postincrement?
Answer Posted / ranjeet garodia
Pre increment operator is use the concept of value by
reference that means it increment the actual object.
While post increment use call by value concept that is it
create the local object, operate on that, then it will
increment actual object, so takes time to create local
object
| Is This Answer Correct ? | 10 Yes | 7 No |
Post New Answer View All Answers
Which is the best c++ compiler for beginners?
Can non graphic characters be used and processed in C++?
Do inline functions improve performance?
What are guid? Why does com need guids?
Define a pointer to a data member of the type pointer to pointer?
Can we specify variable field width in a scanf() format string? If possible how?
the maximum length of a character constant can be a) 2 b) 1 c) 8
What do you mean by funtion prototype?
Difference between declaration and definition of a variable.
Why is c++ still used?
What is singleton pattern in c++?
Can a constructor return a value?
Explain binary search.
How a new operator differs from the operator new?
What do you mean by ‘void’ return type?