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


Please Help Members By Posting Answers For Below Questions

Is java easier than c++?

576


What is the maximum combined length of command line arguments including the space between adjacent arguments?

586


Explain register storage specifier.

581


What is the difference between function overloading and operator overloading?

560


What is a hashmap c++?

560






What is a responder chain?

561


What is a stack? How it can be implemented?

686


Implement stack operations with pointers with appropriate exception checks.

556


What is extern c++?

513


Why is c++ difficult?

596


How do you define a class in c++?

635


Write about the scope resolution operator?

604


What is a wchar_t in c++?

575


What is a tree in c++?

555


How do you decide which integer type to use?

568