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
Is java easier than c++?
What is the maximum combined length of command line arguments including the space between adjacent arguments?
Explain register storage specifier.
What is the difference between function overloading and operator overloading?
What is a hashmap c++?
What is a responder chain?
What is a stack? How it can be implemented?
Implement stack operations with pointers with appropriate exception checks.
What is extern c++?
Why is c++ difficult?
How do you define a class in c++?
Write about the scope resolution operator?
What is a wchar_t in c++?
What is a tree in c++?
How do you decide which integer type to use?