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 do you mean by late binding?

715


What is the purpose of template?

709


What is a singleton class c++?

630


How do you declare A pointer to a function which receives nothing and returns nothing

832


Can constructor be private in c++?

712






What is the real purpose of class – to export data?

718


If a round rectangle has straight edges and rounded corners, your roundrect class inherits both from rectangle and from circle, and they in turn both inherit from shape, how many shapes are created when you create a roundrect?

763


What is c++ w3school?

737


What is an orthogonal base class in c++?

763


what is software cycle? What is a mission critical system ? What is the important aspect of a real-time system ? Explain the difference between microkernel and macro kernel. Give an example of microkernel.Why paging is used ? Which is the best page replacement algo and Why ? What is software life cycle ? How much time is spent usually in each phases and why Which one do U want to work if selected in Honeywell ? Which are the different types of testing ? What is a distributed system ? Some questions about CSP. Which languages do U know ? What are the differences between Pascal and C. questions from Compiler construction and Lisp. Which are the different computer architecture? What is the requirement in MIMD ? What is the difference between RISC and CISC processors ? Difference between loosely coupled and tightly coupled systems ? What is an open system?

1862


Explain static and dynamic memory allocation with an example each.

726


Differentiate between C and C++.

798


What is a friend function in c++?

671


State two differences between C and C++.

705


What is the function to call to turn an ascii string into a long?

696