Why preincrement operator is faster than postincrement?
Answer Posted / sanish joseph
the pre inc operator increments the value of that particular
variable on that line itself
the post inc operator increments the value of that
particular variable after going on the next line
in simple words
eg.
e=5; on this line value of e=5
e++; on this line value of e=5
++e; on this line value of e=7
Is This Answer Correct ? | 27 Yes | 9 No |
Post New Answer View All Answers
Do vectors start at 0 c++?
What is pointer to array in c++?
Do inline functions improve performance?
List the issue that the auto_ptr object handles?
What is an undefined behavior and sequence points
How do you write a function that can reverse a linked-list?
Explain Memory Allocation in C/C++ ?
What is name hiding in c++?
Explain one-definition rule (odr).
How can you tell what shell you are running on unix system?
What is a set in c++?
What is the use of turbo c++?
What are the restrictions apply to constructors and destructors?
Explain function overloading
What is a pdb file?