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

Answers were Sorted based on User's Feedback



What is the difference between: x=a+b+c+d; and x=SUM(a,b,c,d);?sas..

Answer / tathagata

x=a+b+c+d will result in a missing value if any one of the
value in a,b,c or d is missing.
x=sum(a,b,c,d) will give the sum assuming the missing value
as '0'

Is This Answer Correct ?    22 Yes 0 No

What is the difference between: x=a+b+c+d; and x=SUM(a,b,c,d);?sas..

Answer / mohana priya.m

x=a+b+c+d;->The integer value gets stored in the value x.
x=sum(a,b,c,d);->the return value of the function sum
(a,b,c,d) gets stored in the value x.

Is This Answer Correct ?    9 Yes 1 No

What is the difference between: x=a+b+c+d; and x=SUM(a,b,c,d);?sas..

Answer / mohana priya.m

x=a+b+c+d --------> This will add the values of a,b,c and d
and finally assign the resulted value into x.


x=sum(a+b+c+d) ---> This will call the library procedure
named sum() in-order to calculate the sum of a,b,c and d.
Both will results in same answer

Is This Answer Correct ?    7 Yes 2 No

What is the difference between: x=a+b+c+d; and x=SUM(a,b,c,d);?sas..

Answer / 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

What is the difference between: x=a+b+c+d; and x=SUM(a,b,c,d);?sas..

Answer / nikita

In x=a+b+c+d we get sum of four integer, but x=sum(a,b,c,d) not get sum of four integer.

Is This Answer Correct ?    4 Yes 11 No

Post New Answer

More Programming Languages AllOther Interview Questions

Need provab technical test questions

0 Answers  


I have try to write a record in a TDQ from a fle.... what are the steps to do... can anybody plz come with a solution

0 Answers  


Hi I am Rathnam, How To Remove the duplicates with out using remove duplicate stage in the datastage

0 Answers   TCS,


the channel in the data communication model can be? option a.postal mail serv. b telephon lines c.radio signals d. all the above

2 Answers   iNautix, National Investment Commission,


For C sharp,At the time of software is implemented at client site, is it required that client machine have C sharp(Microsoft Visual Basic) setup?

1 Answers   Honeywell,


they asked me about srs (software requirement specifcation)? how can i get anydocumentation about srs & other documnts infomation like bdd, in testing? its urgent?

0 Answers   TCS,


1. Write a program to create a sentence at runtime and count number of vowels in it ? 2. Write a program to get a string and to convert the 1st letter of it to uppercase ?

0 Answers   HTC,


Delta 5 weight scale not connect with oracle application what i can do?

0 Answers  


WHat is execution in manual testing and when will we start execution and what language we use in execution

0 Answers  


Write a program to read and print a text file on screen

1 Answers   Peerless,


Given: coordinates of rectangle-> left bottom and right top points. the rectangles create a hole.Find the maximum area of the hole. eg. 4 rectangles create a hole in between. find its area.

0 Answers   Manhattan,


can we retrieve only integer/String type columns from a table,if yes how?

0 Answers  


Categories