What is the difference between: x=a+b+c+d; and
x=SUM(a,b,c,d);?sas
Answer Posted / inbee
X=a+b+c+d > it is inline case. The + operator is overloaded
such a way the right side object's value will be added with
the left one and goes on. As is is a inline call the
execution of this statement is faster.
X = sum(a+b+c+d) > here the compiler need a switch to the
location in the memory where this library procedure is
written. And once the whore procedure get execute the
execution control need to shift back to the line. So it is
time consuming task. Also the data type of 'x' depends on
the return type of the sum().
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
9.Difference between even and odd signals?explain with the diagram?
For a binary tree with n nodes, How many nodes are there which has got both a parent and a child?
Explain the types of operations? Draw the figure for shift and rotate operations?
Can we write a method in JSP.If so how?
there are N number of matchboxes numbered 1...N.each matchbox contain various number of stick.Two player can alternatevely pick some amount of stick from the higest stick containing box . The player is condidered win if there is no stick after his move.Find the final move so that the move player win. Note:In case the number of stick is equal ,pick the stick from the higest numbered box. eg: 3 box contain stick as:1,1,1. if u take 1 stick from 3rd numbred box you will any how win the match.
When you deliver your C++ headers and C++ library of a class (what all can you change in the class so that application using your class does not need to recompile the code)
How to change the color of a cell or a row in a datagrid on mouse hover using javascript/.net
Please describe an example where you used object orientation in one of your programs.
Always use scope terminator like End-If with IF, End- Evaluate with Evaluate statement.Can somebody explain me the detail logical explanation?
what is difference between input parameter and output parameter.
what is the extension of SPDS Dynamic cluster tables?
One boy has to climb steps. He can climb 1 or 2 steps at a time. Write a function that will returns number of way a boy can climb the steps. Int WaytoSteps(int n) (eg:- suppose number of steps is n=4 ,the function will return 5 (one-one-one-one ,one-one-two, one-two-one-,two-one-one, two-two)
How can we develop a multi-tier application in Java?
what are stubs related to foxpro?
Q2. A memory location has physical address D5687h. Compute: a. The offset address if the segment number is D445h. b. The segment number if the offset address is B577h.