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 exchange two variaables without temp

Answer Posted / kadher

void main()
{
int a=10,b=5;
a=a^b;
b=a^b;
a=a^b;

}

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what is the benefit of using #define to declare a constant?

1143


How to get string length of given string in c?

1039


how many types of operators are include in c language a) 4 b) 6 c) 8 d) 12

1043


I have seen function declarations that look like this

1017


Write a simple code fragment that will check if a number is positive or negative.

1124


Calculate the weighted average of a list of n numbers using the formula xavg = f1x1+f2x2+ ….+ fnxn where the f’s are fractional weighting factors, i.e., 0<=fi<1, and f1+f2+….+fn = 1

4222


what is the role you expect in software industry?

2114


What is the use of volatile?

1062


If fflush wont work, what can I use to flush input?

1073


Write program to remove duplicate in an array?

1057


What is the difference between malloc() and calloc()?

1761


What does the message "automatic aggregate intialization is an ansi feature" mean?

1161


Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database.

1951


what are bit fields in c?

1638


What are directives in c?

943