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...

write a program to swap Two numbers without using temp variable.

Answer Posted / prudhvi

int a, b, c;
a = int.Parse(Console.ReadLine());
b = int.Parse(Console.ReadLine());
c = b;
b = a;
a = c;
Console.WriteLine("a={0},b={1}",a,b);
Console.ReadLine();




}

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the ternary tree?

1028


What is bin sh c?

1046


Can you pass an entire structure to functions?

1127


what is the format specifier for printing a pointer value?

1025


Is null a keyword in c?

1198


What are the complete rules for header file searching?

1091


What are the __date__ and __time__ preprocessor commands?

1121


What is function prototype in c language?

1036


Tell us something about keyword 'auto'.

1074


In C language, the variables NAME, name, and Name are all the same. TRUE or FALSE?

1232


Is a pointer a kind of array?

1188


When was c language developed?

1197


What is scope of variable in c?

1046


What kind of structure is a house?

1048


What is a node in c?

975