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

How do you flush std cout?

567


What is a string example?

547


What are features of c++?

633


What is array in c++ pdf?

554


Explain what is class definition in c++ ?

599






find the two largest values among the 6 numbers using control structures : do-while,for,if else,nestedif- else ,while. one or two of them.

1997


What are the advantages of using friend classes?

627


Can you help me with this one? Make a program that when a user inputed a Product Name, it will display its price, and when the user inputed the quantity of the inputed product, it will show its total price. The output must be like this: Product Name: Price: Quantity: Total Price: ..this is the list of products to be inputed: Cellphone - 1500 Washing Machine - 5200 Television - 6000 Refrigirator - 8000 Oven - 2000 Computer - 11000 thanks..:D

3055


Explain rethrowing exceptions with an example?

605


Can member data be public?

599


What are c++ templates used for?

616


Explain the uses oof nested class?

625


What is the prototype of printf function?

648


int age=35; if(age>80) {Console.WriteLine("Boy you are old");} else {Console.WrieLine("That is a good age");}

830


Why is standard template library used?

579