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
i am getting the error while compiling my cics program with including db2 dclgen member it is showing that ur dclgen member not including and all the host variables are undeclared
how to display xisheet in list box in c# .net
hi i am jyoti i have done sap training in sd and master degree in economics have 2 year exp as enduser in (gdms)and 1 year as sd consultant.as contract basis now what i can do for getting job in it industry
when we use mantis? how learn mantis?
give idea for creating screen in abap
in IT trend mantis meant what? how to know mantis in IT trends? detail description about mantis?
where is available in this mantis toturials?
What is the difference between CLEAR & RESET and OPEN & CLOSE OPCOEDS(USING RPG/400).wheare we can use this?can any body tell me in real time senario with example please?
how will you code the subfile which is in editing mode (multiple case subfile)?
what is web service in java? have u use before.
Is buffer size and file block size is similar? If similar,at which case it will be same size?
Diffrence between 2.0,3.0,3.5,4.0. versions of .net?
what is the main usage of an abstract keyword?please follow the program class A { void display() { System.out.println("hai"); } void print() { } } class B extends A { void print() { System.out.println("Hello"); } } In this program i was gives the implementation of print() according to my requirements in subclass.And there is no definition in superclass then why we can use abstract keyword before a method that i want to gives definition in other classes,is any mistakes in the above usage of method?
Tag for turning an image into a hyperlink is
difference between mantis and other tools?