Why preincrement operator is faster than postincrement?

Answer Posted / devesh patel

b/c preeincrement take one byte instruction & post
increment takes two instruction

Is This Answer Correct ?    16 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the default access level?

794


Do class declarations end with a semicolon? Do class method definitions?

842


What is the difference between #define debug 0 and #undef debug?

867


Discussion on error handling of C++ .

828


Please explain the reference variable in c++?

780






How come you find out if a linked-list is a cycle or not?

761


What does int * mean in c++?

929


Are iterators pointers?

880


Write a function to perform the substraction of two numbers. Eg: char N1="123", N2="478", N3=-355(N1-N2).

798


Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create

2263


Can a function take variable length arguments, if yes, how?

749


In which situation the program terminates before reaching the breakpoint set by the user at the beginning of the mainq method?

806


Can non-public members of another instance of the class be retrieved by the method of the same class?

789


How will you call C functions from C ++ and vice-versa?

842


Write a program to interchange 2 variables without using the third one.

780