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
What is low level language in simple words?
Explain what you mean by a pointer.
Distinguish between a # include and #define.
How the memory management in vectors are being done. What happens when the heap memory is full, and how do you handle it ?
What is implicit pointer in c++?
Can we make copy constructor private in c++?
Explain the different access specifiers for the class member in c++.
How are pointers type-cast?
What operator is used to access a struct through a pointer a) >> b) -> c) *
Write about the access privileges in c++ and also mention about its default access level?
Explain stack & heap objects?
Can you please explain the difference between static and dynamic binding of functions?
Can member data be public?
What is a node class in c++?
How do you find out if a linked-list has an end?