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
Where the memory to the static variables is allocated?
Am pass the 10000 records to target in target I will take commit interval 15000 when I was stop the work flow what will happened
What are the rules for naming an identifier?
What is the difference between prefix and postfix versions of operator++()?
List the advantages of inheritance.
What does ios :: app do in c++?
What is a namespace in c++?
How do you compile the source code with your compiler?
Explain linked list using c++ with an example?
Difference between pass by value and pass by reference?
Is ca high or low level language?
Explain stack unwinding.
Describe the role of the c++ in the tradeoff of safety vs. Usability?
What are move semantics?
How would you use the functions memcpy(), memset(), memmove()?