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 |
A good website has the following conditions It should be interactive. It should contain at least 20 images. Title cannot be null and should contain at least 10 letters other than spaces and hyphen (-). The keywords should contain atleast three among the following list : "design", "Graphics", "lovely", "beautiful", "amazing" and "mesmerising" Write a method: boolean isGoodWebsite(boolean isInteractive, int numOfImages, String title,String keywords[]) isInteractive whether the site is interactive or not numOfImages Number of images on the website title Title of the website keywords Array of keywords in the website.
What function would you use to extract characters from a given string?
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.
Bonjour, svp je veut voir comment envoyer un mail en java et comment changer le droit d'accé d'un fichier en java: de lecture en lecture/écriture et merci d'avance ;)
if we want to move all the items that are already added in a combobox into an empty list box or vice-versa then how can it possible in vb or C# ?
what is difference between sap and java ?
How to call a C++ function which is compiled with C++ compiler in C code?
What is the difference between WebIntelligence and Designer in creating universes?
Hi guyes, I have cleared 2 technical rounds with cts for liferay and java techonologies, i have client round next week, please tell me how to prepare for this what questions i should be ready to face?
In staad pro, how can we design ROOF SLAB?
what is meant by trigger?
difference between mantis and other tools?