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

what are all the validation we need to perform in data stage?

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  


what is log files in qtp what is use

0 Answers   HSBC,


There is a room with 1000 light switches, numbered 1, 2, 3, 4, ... 1000, all turned off. Outside the room there are 1000 men, numbered man1, man2, ...man 1000 In order, each man walks into the room and changes the position of each switch that is a multiple of his number. That is: man1 flips every switch man2 flips switches 2, 4, 6, 8 ....1000 man3 flips switches 3, 6, 9, ..... 999 ..... Man 1000 flips switch 1000 After all 1000 men are done, how many switches are on?

3 Answers  


what is meant by life cycle of a business

0 Answers   IBM,






THE CHANNEL IN DATA COMMUNICATION CAN BE?

0 Answers   TCS,


V2 SOLUTIONS APTI paper is very easy there are 3 sections 1'st is quant problem on age train traveling speed is given length of train is given we have to find out length of bridge then prob on calender one date is given on Friday hv to find out day of othe date ans is Friday then there was 1 prob on percentage which was very easy ans was 21340 then 2’nd section was english grammer had has been being like that hv to fill in the blanks was very wasy then last section was find relative words there was five Q 1 pant ANS:-breath 2inquire ans :- ask And 3 more out of that 1 ‘s ans was:- body 4 And others ans was :-through THEN THEY HAVE GD There was three topics 1 should we allow india’s talent to go to abrod 2 protest against seperate state is justify 3 inturuption of politics in cricket Thats all guys i cleared both the rounds now preparing 4 interview best of luck

0 Answers   V2 Solutions,


Find out the roles which gives access to all tables in SAP? Thanks in advance.

0 Answers  


I need source code for Enrollment System using Visual Basic 6.0/2008 database MS Access 2007 for my school thesis project...please help me..kindly send in my email jpinedamcp@gmail.com

0 Answers  


What is Console Application? & The purpose Of Console Application? with description.

1 Answers  


What is the first message line that any language learning prints on the screen? and why?

0 Answers  


Is anyone has done the ASP.NET MVC4 workshop course(2 days) from Peers Technologies. Let me know. I need to talk before joining ASP.NET MVC4 training at peers, Hyderabad.

0 Answers  


Categories