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 array give example?
What does new do in c++?
Explain binary search.
Are there any special rules about inlining?
What is c++ mutable?
Can java be faster than c++?
What is #include c++?
what is a reference variable in C++?
Explain the static storage classes in c++.
Why do we need function?
Is std :: string immutable?
How do you remove an element from a set in c++?
What does new in c++ do?
What is c++ hash?
write asingle linked list which read from two list & the do the following 1 sort the prime & nonprime num (prime should be less tn nonprime) 2 each node has a prime num followd by nonprime 3 add a new node into its sutable plce 4 erase the most three duplicated non prime num 5 find the least duplicated prime num