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 / harika

main()
{
int a=2,b=3;
a^=b^=a^=b;
printf("%d,%d",a,b);
}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Where we use clrscr in c?

1141


Can you mix old-style and new-style function syntax?

1103


Why is sizeof () an operator and not a function?

1032


Can static variables be declared in a header file?

1062


What is a program?

1272


Is c a great language, or what?

1123


What is graph in c?

1060


Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?

1254


Explain how can I make sure that my program is the only one accessing a file?

1225


How a string is stored in c?

1076


Write a program to compute the similarity between two strings - The program should get the two strings as input - Then it will output one single number which is the percentage of similarity between the two strings

2754


How can you return multiple values from a function?

1122


Array is an lvalue or not?

1130


Explain how can you tell whether a program was compiled using c versus c++?

1105


What are all different types of pointers in c?

1012