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

what is delegate and delegation model give the real live example on delegate model

3329


Explain the types of operations? Draw the figure for shift and rotate operations?

3385


How to merge Action Form with Dyna Action Form in Struts.

2368


what are the topics choosen for jam round for interviews

1715


How will you prove that java swing is multithreaded?

2355


Where do we need Operator overloading?

1178


Wrtite a JCL for sorting a file with start from 36 postion lenth 9 excluding a num eq to 98768. for 3 marks mainframe

1927


In project we have Documentation phase also,in that what is micro and macro designing?

1904


Colors specified with the notation

2304


what does mean and stack mean in genral programming?

1965


hi viewers, tell me,what is scripting and programming, define and difference...pls

2024


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

2455


How do you pass variables forwrd to future CECI sessions

4556


Hai, My name is nisha.I have NIC exam.If anybody Knows NIC previous paper pattern pls send me to nishanairp@gmail.com

2243


When will you use shell script/Perl ahead of C/C++?

1145