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
what is delegate and delegation model give the real live example on delegate model
Explain the types of operations? Draw the figure for shift and rotate operations?
How to merge Action Form with Dyna Action Form in Struts.
what are the topics choosen for jam round for interviews
How will you prove that java swing is multithreaded?
Where do we need Operator overloading?
Wrtite a JCL for sorting a file with start from 36 postion lenth 9 excluding a num eq to 98768. for 3 marks mainframe
In project we have Documentation phase also,in that what is micro and macro designing?
Colors specified with the notation
what does mean and stack mean in genral programming?
hi viewers, tell me,what is scripting and programming, define and difference...pls
can u send some model papers how computer awareness questions are asked in goverment jobs(oriental insurance)to my mail id me.priyankapadma@rediff.com
How do you pass variables forwrd to future CECI sessions
Hai, My name is nisha.I have NIC exam.If anybody Knows NIC previous paper pattern pls send me to nishanairp@gmail.com
When will you use shell script/Perl ahead of C/C++?