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
why we use abstract word in abstract window toolkit in java language.
How do i find out the number of parameters passed into function?
What is easiest way to get the PL/i compiler,I didn't have found the compiler in my library. Is there any extra cost if we want to access the PL/1 programs?Actually we r having Mainframe rented training Ids
if 2 is passed as an argument to the method,void GC.Collect then what would be the result?
I HAVE DONE TESTING TOOLS COURSE,NOW I AM FRESHER,I AM NOT GETTING ANY CALLS,I WANT TO DO THE PROJECT ,WHERE I HAVE TO MEET TO DO THE PROJECT,I AM GOING WITH FAKE EXPERIENCE,SO WHAT I HAVE TO DO.
Which method protects back button to retrieve old value from previous page in Struts.
how to remove header and footer in jcl using sort utility
how do i create my own exception class which will restrict IO exception?
Where do we need Operator overloading?
What are the Short cut Keys of Tally ERP?
How to change the color of a cell or a row in a datagrid on mouse hover using javascript/.net
i want to improve my english vocab for racking campus written exam plz tell me best book for prepration......
What is the meaning of client-server application. The purpose of Client-Server Application. with description.
Given a Binary Search Tree, write a program to print the kth smallest element without using any static/global variable. You can?t pass the value k to any function also.
in IBM PC -AT.WAT AT REFERS TO?