How to swap values between two variables without using a
third variable?
Answer Posted / shobha
int x=10,y=20;
x=x+y (10+20=30)
y=x-y (30-20=10)
x=x-y (30-10=20)
x=20,y=10
x and y vales are swaped.
| Is This Answer Correct ? | 51 Yes | 12 No |
Post New Answer View All Answers
Iam using Microsoft Visual Studio to create a system for mobile store I want to know how to calculate mobile price that the customer buy and how to reduce quantity from the data base that we have for mobile .And also how to calculate revnue for each mobile and revnue for the total mobile
what is web configuration file
Tag for turning an image into a hyperlink is
What is the first message line that any language learning prints on the screen? and why?
how to add a new table with variables and thier values into a imported file uisng proc import?
As per interoperatbility programs written in one language can be used by other language. How can we restrict the features of one language (say C#) in the programmer written in another language (say VB)..for example we have some features like operator overloading which is possible C#.NET (not in VB.NET), how can we restrict that when we are using this code in VB.NET.
WHAT IS MAIN IMPORTANT THING IN SOFTWARE?
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
5.Call by value and Call by reference with program?
Write a shell program to test whether a given year is leap year or not ?
can we use commit,rollback in triggers and how?
Explain polymorphism. Provide an example.
hi i m deepak my shedule for NIC pi is 17 Apr please contact me if anybody has interview on same day or give me some idea who have faced
what is best way to create a Thread class & why?
What is Negative testing?