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
Write a program to encrypt the data in a way that inputs a four digit number and replace each digit by (the sum of that digit plus 7) modulus 10. Then sweep the first digit with the third, second digit with the fourth and print the encrypted number.
Explain friend class?
Can comments be nested?
What are c++ manipulators?
What will happen if a pointer is deleted twice?
What do you know about near, far and huge pointer?
What is ctime c++?
What is setw manipulator in c++?
What operator is used to access a struct through a pointer a) >> b) -> c) *
How do I write a c++ program?
What is runtime errors c++?
Where the memory to the static variables is allocated?
Why do we use setw in c++?
What are pointers used for c++?
What are activex and ole?