Give 2 examples of a code optimization?

Answer Posted / sudheer

How this num1&(num2-1) replaces num1%num2. Execute and
check before posting some thing...

Is This Answer Correct ?    1 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are the iterator and generic algorithms.

1478


What will strcmp("Astring", "Astring"); return a) A positive value b) A negative value c) Zero

637


Why c++ is faster than java?

592


Explain about Garbage Collector?

643


What is a constant reference?

614






How can you quickly find the number of elements stored in a static array?

632


Which command properly allocates memory a) char *a=new char[20]; b) char a=new char[20]; c) char a=new char(20.0);

614


Do you know the use of vtable?

629


Which sort is best for the set: 1 2 3 5 4 a) Quick Sort b) Bubble Sort c) Merge Sort

656


What is double in c++?

557


What kind of problems can be solved by a namespace?

591


What is the full form of stl in c++?

672


what are function pointers?

576


Why cstdlib is used in c++?

581


What is protected inheritance?

592