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
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 |
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 |
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 |
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 |
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 |
can we extend a class having only one parameterised constructor.Suggest the process to do it.
I m Abdullah Ansari compleated MCA from Jamia Hamdard,i have appeared the test of IBM on 2 august at oxford college of engineering Bangalore.waiting for hr round.. This is the first round for IBM.02/08/08 Paper consists of 4 sections 15 questions from matrices(time very less but no negative marking). 25 questions from series completion section (this section is very easy but negative marking) 15 questions from aptitude(little bit tough time limit 15 minute negative marking) 4th section is from computer science (c,c++,operating system,digital electronics ,basic question..) result came at 3 o'clock.i was selected... In interview they asked questions like 1 they asked about final yr project.. 2 what are dynamic and static memory location? 3 linked list and array difference between them. 4 what is function ? what is difference betwen function and inline function? 5 about structure 6 about binary tree, traversal, call by value. 7 storage class and many more basic questions..
write algo for cobol program whichuse three flat file to extract some specific information 8 marks mainframe
merge sort time complexity
6 Answers BFL, CDAC, IBM, Jawaharlal Nehru Technological University JNTU,
SELECT A~FTRMI A~AUFNR B~MATNR D~MAKTX B~PSMNG B~WEMNG C~MTART E~CHARG C~MATKL C~SPART R~BWART R~CHARG R~MATNR E~BWART R~BDMNG INTO TABLE ITAB FROM AFKO AS A INNER JOIN AFPO AS B ON A~AUFNR = B~AUFNR * INNER JOIN AFVC AS A1 ON A~AUFPL = A1~AUFPL AND B~DWERK = A1~WERKS INNER JOIN MARA AS C ON B~MATNR = C~MATNR INNER JOIN MAKT AS D ON C~MATNR = D~MATNR INNER JOIN MSEG AS E ON B~MATNR = E~MATNR AND A~AUFNR = E~AUFNR AND B~DWERK = E~WERKS INNER JOIN RESB AS R ON A~AUFNR = R~AUFNR AND E~AUFNR = R~AUFNR AND R~RSNUM = A~RSNUM AND R~WERKS = E~WERKS AND R~BAUGR = E~MATNR INNER JOIN MARA AS C1 ON R~MATNR = C1~MATNR WHERE A~FTRMI IN S_DATE AND A~AUFNR IN S_AUFNR AND C~MTART IN S_TYPE AND C~MATKL = 'T' AND R~BWART ='261' AND E~BWART = '101' AND R~XWAOK ='X' AND B~DWERK = '2000' AND R~XLOEK EQ SPACE AND E~KZBEW ='F' AND D~SPRAS = 'E' AND R~KZEAR = 'X' AND C~MATNR IN S_MATNR. This query gives repetative records from RESB.There must be some common field which i am not taking thats why its giving repetative records. If u find any solution pls lety me know ASAP. Thanks Swati Ghadge
how to add Servlet-api.jar file into eclipse 3.3.2 ?
can we use commit,rollback in triggers and how?
While joining files if only two files are mentioned with jfile keyword, do we required to use join keyword????
is it acceptable if we declare multiple exceptions in same overridden method.
Programs in JAVA to get the remainder and quotient of given two numbers without using % and / operators?
what is web configuration file
What is the worst case of AVL tree?