Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

why we use abstract word in abstract window toolkit in java language.

2146


How do i find out the number of parameters passed into function?

2598


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

2114


if 2 is passed as an argument to the method,void GC.Collect then what would be the result?

1608


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.

5234


Which method protects back button to retrieve old value from previous page in Struts.

1818


how to remove header and footer in jcl using sort utility

5495


how do i create my own exception class which will restrict IO exception?

2695


Where do we need Operator overloading?

1065


What are the Short cut Keys of Tally ERP?

2239


How to change the color of a cell or a row in a datagrid on mouse hover using javascript/.net

1943


i want to improve my english vocab for racking campus written exam plz tell me best book for prepration......

2107


What is the meaning of client-server application. The purpose of Client-Server Application. with description.

2138


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.

927


in IBM PC -AT.WAT AT REFERS TO?

1845